PPP, CCP, updated ccp_printpkt() prototype to match other *_printpkt()

This commit is contained in:
Sylvain Rochet 2015-03-19 00:50:05 +01:00
parent 151995f88c
commit 90bbcbf994

View File

@ -176,9 +176,7 @@ static void ccp_lowerdown(ppp_pcb *pcb);
static void ccp_input(ppp_pcb *pcb, u_char *pkt, int len);
static void ccp_protrej(ppp_pcb *pcb);
#if PRINTPKT_SUPPORT
static int ccp_printpkt (u_char *pkt, int len,
void (*printer) (void *, char *, ...),
void *arg);
static int ccp_printpkt(u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg);
#endif /* PRINTPKT_SUPPORT */
static void ccp_datainput(ppp_pcb *pcb, u_char *pkt, int len);
@ -1449,7 +1447,7 @@ static char *ccp_codenames[] = {
"ResetReq", "ResetAck",
};
static int ccp_printpkt(u_char *p, u_char plen, void (*printer) (void *, char *, ...), void *arg) {
static int ccp_printpkt(u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg) {
u_char *p0, *optend;
int code, id, len;
int optlen;