/[inetutils]/inetutils/inetd/inetd.c
ViewVC logotype

Diff of /inetutils/inetd/inetd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by gray, Wed Sep 21 21:41:35 2005 UTC revision 1.31 by gray, Tue Oct 11 11:16:13 2005 UTC
# Line 455  main (int argc, char *argv[], char *envp Line 455  main (int argc, char *argv[], char *envp
455      if (fp != NULL)      if (fp != NULL)
456        {        {
457          fprintf (fp, "%d\n", getpid ());          fprintf (fp, "%d\n", getpid ());
458          (void) fclose (fp);          fclose (fp);
459        }        }
460      else      else
461        syslog (LOG_CRIT, "can't open %s: %s\n", PATH_INETDPID, strerror (errno));        syslog (LOG_CRIT, "can't open %s: %s\n", PATH_INETDPID, strerror (errno));
# Line 652  reapchild (int signo) Line 652  reapchild (int signo)
652    pid_t pid;    pid_t pid;
653    struct servtab *sep;    struct servtab *sep;
654    
655    (void)signo; /* shutup gcc */    signo; /* shutup gcc */
656    for (;;)    for (;;)
657      {      {
658  #ifdef HAVE_WAIT3  #ifdef HAVE_WAIT3
# Line 687  config (int signo) Line 687  config (int signo)
687    struct stat stats;    struct stat stats;
688    struct servtab *sep;    struct servtab *sep;
689    
690    (void)signo; /* Shutup gcc.  */    signo; /* Shutup gcc.  */
691    
692    for (sep = servtab; sep; sep = sep->se_next)    for (sep = servtab; sep; sep = sep->se_next)
693      sep->se_checked = 0;      sep->se_checked = 0;
# Line 861  retry (int signo) Line 861  retry (int signo)
861  {  {
862    struct servtab *sep;    struct servtab *sep;
863    
864    (void)signo; /* shutup gcc */    signo; /* shutup gcc */
865    timingout = 0;    timingout = 0;
866    for (sep = servtab; sep; sep = sep->se_next)    for (sep = servtab; sep; sep = sep->se_next)
867      if (sep->se_fd == -1 && !ISMUX (sep))      if (sep->se_fd == -1 && !ISMUX (sep))
# Line 1382  echo_dg (int s, struct servtab *sep) Line 1382  echo_dg (int s, struct servtab *sep)
1382    struct sockaddr sa;    struct sockaddr sa;
1383  #endif  #endif
1384    
1385    (void)sep;    sep;
1386    size = sizeof sa;    size = sizeof sa;
1387    i = recvfrom (s, buffer, sizeof buffer, 0, (struct sockaddr *)&sa, &size);    i = recvfrom (s, buffer, sizeof buffer, 0, (struct sockaddr *)&sa, &size);
1388    if (i < 0)    if (i < 0)
# Line 1415  void Line 1415  void
1415  discard_dg (int s, struct servtab *sep)  discard_dg (int s, struct servtab *sep)
1416  {  {
1417    char buffer[BUFSIZE];    char buffer[BUFSIZE];
1418    (void)sep; /* shutup gcc */    sep; /* shutup gcc */
1419    read (s, buffer, sizeof buffer);    read (s, buffer, sizeof buffer);
1420  }  }
1421    
# Line 1485  chargen_dg (int s, struct servtab *sep) Line 1485  chargen_dg (int s, struct servtab *sep)
1485    int len, size;    int len, size;
1486    char text[LINESIZ+2];    char text[LINESIZ+2];
1487    
1488    (void)sep; /* shutup gcc */    sep; /* shutup gcc */
1489    if (endring == 0)    if (endring == 0)
1490      {      {
1491        initring ();        initring ();
# Line 1540  machtime_stream (int s, struct servtab * Line 1540  machtime_stream (int s, struct servtab *
1540  {  {
1541    long result;    long result;
1542    
1543    (void)sep; /* shutup gcc */    sep; /* shutup gcc */
1544    result = machtime ();    result = machtime ();
1545    write (s, (char *) &result, sizeof result);    write (s, (char *) &result, sizeof result);
1546  }  }
# Line 1557  machtime_dg (int s, struct servtab *sep) Line 1557  machtime_dg (int s, struct servtab *sep)
1557  #endif  #endif
1558    int size;    int size;
1559    
1560    (void)sep; /* shutup gcc */    sep; /* shutup gcc */
1561    size = sizeof sa;    size = sizeof sa;
1562    if (recvfrom (s, (char *)&result, sizeof result, 0,    if (recvfrom (s, (char *)&result, sizeof result, 0,
1563                  (struct sockaddr *)&sa, &size) < 0)                  (struct sockaddr *)&sa, &size) < 0)
# Line 1575  daytime_stream (int s, struct servtab *s Line 1575  daytime_stream (int s, struct servtab *s
1575    char buffer[256];    char buffer[256];
1576    time_t lclock;    time_t lclock;
1577    
1578    (void)sep; /*shutup gcc*/    sep; /*shutup gcc*/
1579    lclock = time ((time_t *) 0);    lclock = time ((time_t *) 0);
1580    
1581    sprintf (buffer, "%.24s\r\n", ctime(&lclock));    sprintf (buffer, "%.24s\r\n", ctime(&lclock));
# Line 1596  daytime_dg(int s, struct servtab *sep) Line 1596  daytime_dg(int s, struct servtab *sep)
1596  #endif  #endif
1597    int size;    int size;
1598    
1599    (void)sep; /* shutup gcc */    sep; /* shutup gcc */
1600    lclock = time ((time_t *) 0);    lclock = time ((time_t *) 0);
1601    
1602    size = sizeof sa;    size = sizeof sa;

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26