X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fchap.c;h=2a43c050cdadcf4f06c966521e2618199012c8aa;hb=44cd25b6c5a886f3cb615f2f0d8d78c6a52a2030;hp=a0e821a1ce20f1d3e31138c1e53582600e857f64;hpb=875d9641d05b4fcb7e186f784c801962bb2670e5;p=ppp.git diff --git a/pppd/chap.c b/pppd/chap.c index a0e821a..2a43c05 100644 --- a/pppd/chap.c +++ b/pppd/chap.c @@ -33,9 +33,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef lint -static const char rcsid[] = "$Id: chap.c,v 1.22 1999/08/12 04:25:20 paulus Exp $"; -#endif +#define RCSID "$Id: chap.c,v 1.24 1999/11/15 01:51:50 paulus Exp $" /* * TODO: @@ -53,6 +51,8 @@ static const char rcsid[] = "$Id: chap.c,v 1.22 1999/08/12 04:25:20 paulus Exp $ #include "chap_ms.h" #endif +static const char rcsid[] = RCSID; + /* * Command-line options. */ @@ -741,7 +741,7 @@ ChapGenChallenge(cstate) { int chal_len; u_char *ptr = cstate->challenge; - unsigned int i; + int i; /* pick a random challenge length between MIN_CHALLENGE_LENGTH and MAX_CHALLENGE_LENGTH */ @@ -753,7 +753,7 @@ ChapGenChallenge(cstate) cstate->chal_transmits = 0; /* generate a random string */ - for (i = 0; i < chal_len; i++ ) + for (i = 0; i < chal_len; i++) *ptr++ = (char) (drand48() * 0xff); }