xatonum.h: add comment
[oweals/busybox.git] / networking / isrv_identd.c
index 84cf6da6a05dab7cd533c9061a57b73b0cd437b9..a93de124418defbe1c49716ed2aaf917e5cd79a8 100644 (file)
@@ -32,7 +32,7 @@ static int new_peer(isrv_state_t *state, int fd)
        if (isrv_register_fd(state, peer, fd) < 0)
                return peer; /* failure, unregister peer */
 
-       buf->fd_flag = fcntl(fd, F_GETFL, 0) | O_NONBLOCK;
+       buf->fd_flag = fcntl(fd, F_GETFL) | O_NONBLOCK;
        isrv_want_rd(state, fd);
        return 0;
 }
@@ -92,7 +92,7 @@ static void inetd_mode(void)
        while (do_rd(0, (void*)&buf) == 0);
 }
 
-int fakeidentd_main(int argc, char **argv);
+int fakeidentd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int fakeidentd_main(int argc, char **argv)
 {
        enum {
@@ -107,7 +107,7 @@ int fakeidentd_main(int argc, char **argv)
        unsigned opt;
        int fd;
 
-       opt = getopt32(argc, argv, "fiwb:", &bind_address);
+       opt = getopt32(argv, "fiwb:", &bind_address);
        strcpy(bogouser, "nobody");
        if (argv[optind])
                strncpy(bogouser, argv[optind], sizeof(bogouser));