Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/networking/isrv_identd.c

    r1765 r2725  
    33 * Fake identd server.
    44 *
    5  * Copyright (C) 2007 Denis Vlasenko
     5 * Copyright (C) 2007 Denys Vlasenko
    66 *
    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.
    88 */
    99
     10#include "libbb.h"
    1011#include <syslog.h>
    11 #include "libbb.h"
    1212#include "isrv.h"
    1313
     
    6262    if (p)
    6363        *p = '\0';
    64     if (!p && sz && buf->pos <= sizeof(buf->buf))
     64    if (!p && sz && buf->pos <= (int)sizeof(buf->buf))
    6565        goto ok;
    6666    /* Terminate session. If we are in server mode, then
     
    7777}
    7878
    79 static int do_timeout(void **paramp)
     79static int do_timeout(void **paramp UNUSED_PARAM)
    8080{
    8181    return 1; /* terminate session */
     
    9393}
    9494
    95 int fakeidentd_main(int argc, char **argv);
    96 int fakeidentd_main(int argc, char **argv)
     95int fakeidentd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     96int fakeidentd_main(int argc UNUSED_PARAM, char **argv)
    9797{
    9898    enum {
     
    114114
    115115    /* Daemonize if no -f and no -i and no -w */
    116     if (!(opt & OPT_fiw));
     116    if (!(opt & OPT_fiw))
    117117        bb_daemonize_or_rexec(0, argv);
    118118
     
    123123     * (Or maybe we need yet another option "log to syslog") */
    124124    if (!(opt & OPT_fiw) /* || (opt & OPT_syslog) */) {
    125         openlog(applet_name, 0, LOG_DAEMON);
     125        openlog(applet_name, LOG_PID, LOG_DAEMON);
    126126        logmode = LOGMODE_SYSLOG;
    127127    }
Note: See TracChangeset for help on using the changeset viewer.