diff options
author | jmallett <jmallett@FreeBSD.org> | 2005-05-11 02:50:41 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2005-05-11 02:50:41 +0000 |
commit | a30e94db0393ceac1305c36805495bba346fdf60 (patch) | |
tree | c216842c7e96cade900ab2c3b635b118614e26f6 /sbin | |
parent | 1a7bb0831bc58e8353f803a1bec62a51a0f5146b (diff) | |
download | FreeBSD-src-a30e94db0393ceac1305c36805495bba346fdf60.zip FreeBSD-src-a30e94db0393ceac1305c36805495bba346fdf60.tar.gz |
shutdown(2)'s how argument as 0 is nowhere near as cool as SHUT_RD
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index acb8194..bc5c202 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -208,7 +208,7 @@ flushroutes(argc, argv) if (uid && !debugonly) { errx(EX_NOPERM, "must be root to alter routing table"); } - shutdown(s, 0); /* Don't want to read back our messages */ + shutdown(s, SHUT_RD); /* Don't want to read back our messages */ if (argc > 1) { argv++; if (argc == 2 && **argv == '-') @@ -577,7 +577,7 @@ newroute(argc, argv) } cmd = argv[0]; if (*cmd != 'g') - shutdown(s, 0); /* Don't want to read back our messages */ + shutdown(s, SHUT_RD); /* Don't want to read back our messages */ while (--argc > 0) { if (**(++argv)== '-') { switch (key = keyword(1 + *argv)) { |