X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fcbcp.c;h=8c33cf6392bfb5effb9a52a099427e8f5d63d875;hb=5c9f2d0e37f7b761e7d966385028f32cb0cca0cf;hp=87bf9c002c0c72c3600216936a3edb4fe3519c4d;hpb=032020241d270c53dff479a7b0eb7fe487c56a78;p=ppp.git diff --git a/pppd/cbcp.c b/pppd/cbcp.c index 87bf9c0..8c33cf6 100644 --- a/pppd/cbcp.c +++ b/pppd/cbcp.c @@ -41,10 +41,11 @@ #include #include -#include "pppd.h" +#include "pppd-private.h" #include "cbcp.h" #include "fsm.h" #include "lcp.h" +#include "options.h" /* @@ -52,7 +53,7 @@ */ static int setcbcp (char **); -static option_t cbcp_option_list[] = { +static struct option cbcp_option_list[] = { { "callback", o_special, (void *)setcbcp, "Ask for callback", OPT_PRIO | OPT_A2STRVAL, &cbcp[0].us_number }, { NULL } @@ -461,6 +462,6 @@ static void cbcp_up(cbcp_state *us) { persist = 0; - status = EXIT_CALLBACK; + ppp_set_status(EXIT_CALLBACK); lcp_close(0, "Call me back, please"); }