From b894acfb2acbe56562c866aad42c3a65f9b49321 Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Wed, 11 May 2005 02:50:41 +0000 Subject: [PATCH] shutdown(2)'s how argument as 0 is nowhere near as cool as SHUT_RD --- sbin/route/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/route/route.c b/sbin/route/route.c index acb81942dc28..bc5c20205ae5 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)) {