Route did not use the shutdown() constants.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7213 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -287,7 +287,7 @@ void flushroutes(int argc, char *argv[])
|
||||
errno = EACCES;
|
||||
quit("must be root to alter routing table");
|
||||
}
|
||||
shutdown(s, 0); /* Don't want to read back our messages */
|
||||
shutdown(s, SHUTDOWN_RECV); /* Don't want to read back our messages */
|
||||
if (argc > 1) {
|
||||
argv++;
|
||||
if (argc == 2 && **argv == '-')
|
||||
@@ -616,7 +616,7 @@ int newroute(int argc, char **argv)
|
||||
}
|
||||
cmd = argv[0];
|
||||
if (*cmd != 'g')
|
||||
shutdown(s, 0); /* Don't want to read back our messages */
|
||||
shutdown(s, SHUTDOWN_RECV); /* Don't want to read back our messages */
|
||||
while (--argc > 0) {
|
||||
if (**(++argv)== '-') {
|
||||
switch (key = keyword(1 + *argv)) {
|
||||
|
||||
Reference in New Issue
Block a user