if (isrv_register_fd(state, peer, fd) < 0)
return peer; /* failure, unregister peer */
if (isrv_register_fd(state, peer, fd) < 0)
return peer; /* failure, unregister peer */
goto ok;
/* Terminate session. If we are in server mode, then
* fd is still in nonblocking mode - we never block here */
goto ok;
/* Terminate session. If we are in server mode, then
* fd is still in nonblocking mode - we never block here */
-int fakeidentd_main(int argc, char **argv);
-int fakeidentd_main(int argc, char **argv)
+int fakeidentd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int fakeidentd_main(int argc UNUSED_PARAM, char **argv)
- 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));
/* Daemonize if no -f and no -i and no -w */
strcpy(bogouser, "nobody");
if (argv[optind])
strncpy(bogouser, argv[optind], sizeof(bogouser));
/* Daemonize if no -f and no -i and no -w */
bb_daemonize_or_rexec(0, argv);
/* Where to log in inetd modes? "Classic" inetd
bb_daemonize_or_rexec(0, argv);
/* Where to log in inetd modes? "Classic" inetd