X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipcp.c;h=d273f50d5534bf670e18beff9599c4f7066dc152;hb=af2093b4aa8256bf9150bac9197e09a6819fdb77;hp=a652cbb641b51374129a4d447c99d98a13134ef2;hpb=2e53641535da26bf8c3c424172758ed81d908581;p=ppp.git diff --git a/pppd/ipcp.c b/pppd/ipcp.c index a652cbb..d273f50 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: ipcp.c,v 1.50 1999/08/24 05:31:09 paulus Exp $" +#define RCSID "$Id: ipcp.c,v 1.51 1999/11/15 01:51:51 paulus Exp $" /* * TODO: @@ -264,7 +264,7 @@ setdnsaddr(argv) struct hostent *hp; dns = inet_addr(*argv); - if (dns == -1) { + if (dns == (u_int32_t) -1) { if ((hp = gethostbyname(*argv)) == NULL) { option_error("invalid address parameter '%s' for ms-dns option", *argv); @@ -296,7 +296,7 @@ setwinsaddr(argv) struct hostent *hp; wins = inet_addr(*argv); - if (wins == -1) { + if (wins == (u_int32_t) -1) { if ((hp = gethostbyname(*argv)) == NULL) { option_error("invalid address parameter '%s' for ms-wins option", *argv);