X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fccp.c;h=7cfd692fd3558409bcf64c3f117db725c56a8437;hb=2b0e16c59c832c53545eba4ad3b2857334c1b2ff;hp=e6b1c1262c80370b08ad5c189199e10bd2f8e1c9;hpb=875d9641d05b4fcb7e186f784c801962bb2670e5;p=ppp.git diff --git a/pppd/ccp.c b/pppd/ccp.c index e6b1c12..7cfd692 100644 --- a/pppd/ccp.c +++ b/pppd/ccp.c @@ -25,9 +25,7 @@ * OR MODIFICATIONS. */ -#ifndef lint -static const char rcsid[] = "$Id: ccp.c,v 1.28 1999/08/12 04:25:19 paulus Exp $"; -#endif +#define RCSID "$Id: ccp.c,v 1.30 2000/04/15 01:27:11 masputra Exp $" #include #include @@ -37,6 +35,8 @@ static const char rcsid[] = "$Id: ccp.c,v 1.28 1999/08/12 04:25:19 paulus Exp $" #include "ccp.h" #include +static const char rcsid[] = RCSID; + /* * Command-line options. */ @@ -48,7 +48,7 @@ static option_t ccp_option_list[] = { "Disable CCP negotiation" }, { "-ccp", o_bool, &ccp_protent.enabled_flag, "Disable CCP negotiation" }, - { "bsdcomp", o_special, setbsdcomp, + { "bsdcomp", o_special, (void *)setbsdcomp, "Request BSD-Compress packet compression" }, { "nobsdcomp", o_bool, &ccp_wantoptions[0].bsd_compress, "don't allow BSD-Compress", OPT_A2COPY, @@ -56,7 +56,7 @@ static option_t ccp_option_list[] = { { "-bsdcomp", o_bool, &ccp_wantoptions[0].bsd_compress, "don't allow BSD-Compress", OPT_A2COPY, &ccp_allowoptions[0].bsd_compress }, - { "deflate", 1, setdeflate, + { "deflate", 1, (void *)setdeflate, "request Deflate compression" }, { "nodeflate", o_bool, &ccp_wantoptions[0].deflate, "don't allow Deflate compression", OPT_A2COPY, @@ -1150,7 +1150,7 @@ ccp_printpkt(p, plen, printer, arg) case TERMACK: case TERMREQ: if (len > 0 && *p >= ' ' && *p < 0x7f) { - print_string(p, len, printer, arg); + print_string((char *)p, len, printer, arg); p += len; len = 0; }