X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fccp.c;h=90f83fad1429e4d453307223e49db1bdfa825d51;hp=24bf6ccd0e3393dd691dde490048e5feb62e4055;hb=b45067455a4e74d002f8d321ac261df95ad8ad7e;hpb=a3396b002507d72b3e1f1169bd02ae018539654b diff --git a/pppd/ccp.c b/pppd/ccp.c index 24bf6cc..90f83fa 100644 --- a/pppd/ccp.c +++ b/pppd/ccp.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ccp.c,v 1.5 1994/09/21 06:47:37 paulus Exp $"; +static char rcsid[] = "$Id: ccp.c,v 1.6 1994/10/24 04:31:11 paulus Exp $"; #endif #include @@ -36,11 +36,11 @@ static char rcsid[] = "$Id: ccp.c,v 1.5 1994/09/21 06:47:37 paulus Exp $"; #include "fsm.h" #include "ccp.h" -fsm ccp_fsm[N_PPP]; -ccp_options ccp_wantoptions[N_PPP]; /* what to request the peer to use */ -ccp_options ccp_gotoptions[N_PPP]; /* what the peer agreed to do */ -ccp_options ccp_allowoptions[N_PPP]; /* what we'll agree to do */ -ccp_options ccp_hisoptions[N_PPP]; /* what we agreed to do */ +fsm ccp_fsm[NUM_PPP]; +ccp_options ccp_wantoptions[NUM_PPP]; /* what to request the peer to use */ +ccp_options ccp_gotoptions[NUM_PPP]; /* what the peer agreed to do */ +ccp_options ccp_allowoptions[NUM_PPP]; /* what we'll agree to do */ +ccp_options ccp_hisoptions[NUM_PPP]; /* what we agreed to do */ /* * Callbacks for fsm code. @@ -102,7 +102,7 @@ static fsm_callbacks ccp_callbacks = { /* * Local state (mainly for handling reset-reqs and reset-acks */ -static int ccp_localstate[N_PPP]; +static int ccp_localstate[NUM_PPP]; #define RACK_PENDING 1 /* waiting for reset-ack */ #define RREQ_REPEAT 2 /* send another reset-req if no reset-ack */