Changed to link against our libbind.so and libsocket.so.
Now using correct shutdown constants. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,7 +6,7 @@ BinCommand <bin>route :
|
|||||||
keywords.c
|
keywords.c
|
||||||
route.c
|
route.c
|
||||||
show.c
|
show.c
|
||||||
: socket bind ;
|
: libsocket.so libbind.so ;
|
||||||
|
|
||||||
# Installation -- in the test directory for the time being
|
# Installation -- in the test directory for the time being
|
||||||
OBOSInstall install-networking
|
OBOSInstall install-networking
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ void flushroutes(int argc, char *argv[])
|
|||||||
errno = EACCES;
|
errno = EACCES;
|
||||||
quit("must be root to alter routing table");
|
quit("must be root to alter routing table");
|
||||||
}
|
}
|
||||||
shutdown(s, SHUTDOWN_RECV); /* Don't want to read back our messages */
|
shutdown(s, SHUT_RD); /* Don't want to read back our messages */
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
argv++;
|
argv++;
|
||||||
if (argc == 2 && **argv == '-')
|
if (argc == 2 && **argv == '-')
|
||||||
@@ -616,7 +616,7 @@ int newroute(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
cmd = argv[0];
|
cmd = argv[0];
|
||||||
if (*cmd != 'g')
|
if (*cmd != 'g')
|
||||||
shutdown(s, SHUTDOWN_RECV); /* Don't want to read back our messages */
|
shutdown(s, SHUT_RD); /* Don't want to read back our messages */
|
||||||
while (--argc > 0) {
|
while (--argc > 0) {
|
||||||
if (**(++argv)== '-') {
|
if (**(++argv)== '-') {
|
||||||
switch (key = keyword(1 + *argv)) {
|
switch (key = keyword(1 + *argv)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user