Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/networking/isrv_identd.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/networking/isrv_identd.c
r1765 r2725 3 3 * Fake identd server. 4 4 * 5 * Copyright (C) 2007 Den is Vlasenko5 * Copyright (C) 2007 Denys Vlasenko 6 6 * 7 * Licensed under GPL version 2, see file LICENSE in this tarball for details.7 * Licensed under GPLv2, see file LICENSE in this source tree. 8 8 */ 9 9 10 #include "libbb.h" 10 11 #include <syslog.h> 11 #include "libbb.h"12 12 #include "isrv.h" 13 13 … … 62 62 if (p) 63 63 *p = '\0'; 64 if (!p && sz && buf->pos <= sizeof(buf->buf))64 if (!p && sz && buf->pos <= (int)sizeof(buf->buf)) 65 65 goto ok; 66 66 /* Terminate session. If we are in server mode, then … … 77 77 } 78 78 79 static int do_timeout(void **paramp )79 static int do_timeout(void **paramp UNUSED_PARAM) 80 80 { 81 81 return 1; /* terminate session */ … … 93 93 } 94 94 95 int fakeidentd_main(int argc, char **argv) ;96 int fakeidentd_main(int argc , char **argv)95 int fakeidentd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 96 int fakeidentd_main(int argc UNUSED_PARAM, char **argv) 97 97 { 98 98 enum { … … 114 114 115 115 /* Daemonize if no -f and no -i and no -w */ 116 if (!(opt & OPT_fiw)) ;116 if (!(opt & OPT_fiw)) 117 117 bb_daemonize_or_rexec(0, argv); 118 118 … … 123 123 * (Or maybe we need yet another option "log to syslog") */ 124 124 if (!(opt & OPT_fiw) /* || (opt & OPT_syslog) */) { 125 openlog(applet_name, 0, LOG_DAEMON);125 openlog(applet_name, LOG_PID, LOG_DAEMON); 126 126 logmode = LOGMODE_SYSLOG; 127 127 }
Note:
See TracChangeset
for help on using the changeset viewer.