diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2015-11-20 17:26:57 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2015-11-20 17:26:57 +0000 |
commit | 60e02a70731a69a30dacb45223161b2ad683d344 (patch) | |
tree | a0a03be7336155dcfb56d21c41c0a561a10749e4 /sbin/route | |
parent | a39e421064c84fafed4cd223442b5fe1c4f1cd0a (diff) |
Replace hardcoded "0" with SHUT_RD; from Ricardo Mestre
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 89819479127..1b3b37b47d9 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.179 2015/10/25 09:37:08 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.180 2015/11/20 17:26:56 jca Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -270,7 +270,7 @@ flushroutes(int argc, char **argv) if (uid) errx(1, "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 */ while (--argc > 0) { if (**(++argv) == '-') switch (keyword(*argv + 1)) { @@ -450,7 +450,7 @@ newroute(int argc, char **argv) errx(1, "must be root to alter routing table"); 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)) { |