bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] [PATCH] Fix compiler warnings


From: Alfred M. Szmidt
Subject: Re: [bug-inetutils] [PATCH] Fix compiler warnings
Date: Thu, 03 Dec 2009 14:47:56 -0500

   > --- a/inetd/inetd.c
   > +++ b/inetd/inetd.c
   > @@ -1013,7 +1011,7 @@ getconfigent (FILE *fconfig, const char *file, 
size_t *line)
   >  {
   >    static struct servtab serv;
   >    struct servtab *sep = &serv;
   > -  size_t argc = 0, i;
   > +  int argc = 0, i;
   >    char **argv = NULL;
   >    char *node, *service;
   >    static char TCPMUX_TOKEN[] = "tcpmux/";

   This was not documented in the ChangeLog. And it seems to me only ā€˜iā€™
   needs to be size_t, and argc would be better left as int to match
   normal argc/argv types.

Good catch! Giuseppe, could you fix the ChangeLog to reflect this
change?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]