From: Paul Mackerras Date: Thu, 4 Apr 1996 03:58:41 +0000 (+0000) Subject: minor cleanup X-Git-Tag: RELEASE_2_3_6~496 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=a796447f89f64fe856b12e306a45665ea1985b9d minor cleanup --- diff --git a/pppd/ipcp.h b/pppd/ipcp.h index 2dc68e7..620b70f 100644 --- a/pppd/ipcp.h +++ b/pppd/ipcp.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ipcp.h,v 1.7 1996/01/01 22:56:54 paulus Exp $ + * $Id: ipcp.h,v 1.8 1996/04/04 03:57:37 paulus Exp $ */ /* @@ -53,9 +53,7 @@ typedef struct ipcp_options { u_short vj_protocol; /* protocol value to use in VJ option */ u_char maxslotindex, cflag; /* values for RFC1332 VJ compression neg. */ u_int32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */ -#ifdef USE_MS_DNS - u_int32_t dnsaddr[2]; /* Primary and secondary DNS entries */ -#endif + u_int32_t dnsaddr[2]; /* Primary and secondary MS DNS entries */ } ipcp_options; extern fsm ipcp_fsm[]; @@ -74,5 +72,6 @@ void ipcp_protrej __P((int)); int ipcp_printpkt __P((u_char *, int, void (*)(), void *)); void ip_check_options __P((void)); int ip_demand_conf __P((int)); +char *ip_ntoa __P((u_int32_t)); extern struct protent ipcp_protent; diff --git a/pppd/magic.c b/pppd/magic.c index 4797f0b..9e95994 100644 --- a/pppd/magic.c +++ b/pppd/magic.c @@ -18,23 +18,20 @@ */ #ifndef lint -static char rcsid[] = "$Id: magic.c,v 1.5 1995/06/06 01:52:25 paulus Exp $"; +static char rcsid[] = "$Id: magic.c,v 1.6 1996/04/04 03:58:41 paulus Exp $"; #endif #include +#include #include #include #include "pppd.h" #include "magic.h" -static u_int32_t next; /* Next value to return */ - -extern int gethostid __P((void)); extern long mrand48 __P((void)); extern void srand48 __P((long)); - /* * magic_init - Initialize the magic number generator. *