Fix signed/unsigned comparison warnings. Fix spelling error in comment. NetBSD Rev. 1.9 and 1.7 --- lib/libc/rpc/getnetconfig.c.orig Mon Jan 6 18:21:38 2003 +++ lib/libc/rpc/getnetconfig.c Mon Jan 6 18:28:11 2003 @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -462,7 +463,7 @@ return (NULL); } do { - int len; + ptrdiff_t len; char *tmpp; /* tmp string pointer */ do { @@ -477,7 +478,7 @@ nc_error = NC_BADFILE; break; } - if (strlen(netid) == (len = tmpp - stringp) && /* a match */ + if (strlen(netid) == (size_t) (len = tmpp - stringp) && /* a match */ strncmp(stringp, netid, (size_t)len) == 0) { if ((ncp = (struct netconfig *) malloc(sizeof (struct netconfig))) == NULL) { @@ -664,7 +665,7 @@ { struct netconfig *p; char *tmp; - int i; + u_int i; if ((tmp=malloc(MAXNETCONFIGLINE)) == NULL) return(NULL); @@ -677,7 +678,7 @@ * adjust some of the member pointer to a pre-allocated buffer where * contains part of the data. * To follow the convention used in parse_ncp(), we store all the - * neccessary information in the pre-allocated buffer and let each + * necessary information in the pre-allocated buffer and let each * of the netconfig char pointer member point to the right address * in the buffer. */