diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2007-09-05 08:04:50 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2007-09-05 08:04:50 +0000 |
commit | fa9b0e2b38f9fea0fc4016522d711b3a9c329ad3 (patch) | |
tree | 0b450b948b62c172a491705e5ab9bf8f8cd9c7f7 /usr.bin/ftp | |
parent | 27829f1ec0eaf39e866ee83cc8215c5280a77644 (diff) |
Replace magic numbers in calls to shutdown(2)
with their respective defines.
ok millert@
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index c83ad2440c2..1ddc702af5f 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.65 2007/06/16 08:58:33 espie Exp $ */ +/* $OpenBSD: main.c,v 1.66 2007/09/05 08:04:49 moritz Exp $ */ /* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */ /* @@ -66,7 +66,7 @@ static const char copyright[] = #endif /* not lint */ #if !defined(lint) && !defined(SMALL) -static const char rcsid[] = "$OpenBSD: main.c,v 1.65 2007/06/16 08:58:33 espie Exp $"; +static const char rcsid[] = "$OpenBSD: main.c,v 1.66 2007/09/05 08:04:49 moritz Exp $"; #endif /* not lint and not SMALL */ /* @@ -373,12 +373,12 @@ lostpeer(void) alarmtimer(0); if (connected) { if (cout != NULL) { - (void)shutdown(fileno(cout), 1+1); + (void)shutdown(fileno(cout), SHUT_RDWR); (void)fclose(cout); cout = NULL; } if (data >= 0) { - (void)shutdown(data, 1+1); + (void)shutdown(data, SHUT_RDWR); (void)close(data); data = -1; } @@ -387,7 +387,7 @@ lostpeer(void) pswitch(1); if (connected) { if (cout != NULL) { - (void)shutdown(fileno(cout), 1+1); + (void)shutdown(fileno(cout), SHUT_RDWR); (void)fclose(cout); cout = NULL; } |