summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/ipcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/pppd/ipcp.c')
-rw-r--r--cpukit/pppd/ipcp.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/cpukit/pppd/ipcp.c b/cpukit/pppd/ipcp.c
index 6b6a93a09e..39d9ccbd44 100644
--- a/cpukit/pppd/ipcp.c
+++ b/cpukit/pppd/ipcp.c
@@ -51,10 +51,10 @@ ipcp_options ipcp_hisoptions[NUM_PPP]; /* Options that we ack'd */
bool disable_defaultip = 0; /* Don't use hostname for default IP adrs */
/* Hook for a plugin to know when IP protocol has come up */
-void (*ip_up_hook) __P((void)) = NULL;
+void (*ip_up_hook)(void) = NULL;
/* Hook for a plugin to know when IP protocol has come down */
-void (*ip_down_hook) __P((void)) = NULL;
+void (*ip_down_hook)(void) = NULL;
/* local vars */
static int default_route_set[NUM_PPP]; /* Have set up a default route */
@@ -65,16 +65,16 @@ static int ipcp_is_up; /* have called np_up() */
/*
* Callbacks for fsm code. (CI = Configuration Information)
*/
-static void ipcp_resetci __P((fsm *)); /* Reset our CI */
-static int ipcp_cilen __P((fsm *)); /* Return length of our CI */
-static void ipcp_addci __P((fsm *, u_char *, int *)); /* Add our CI */
-static int ipcp_ackci __P((fsm *, u_char *, int)); /* Peer ack'd our CI */
-static int ipcp_nakci __P((fsm *, u_char *, int)); /* Peer nak'd our CI */
-static int ipcp_rejci __P((fsm *, u_char *, int)); /* Peer rej'd our CI */
-static int ipcp_reqci __P((fsm *, u_char *, int *, int)); /* Rcv CI */
-static void ipcp_up __P((fsm *)); /* We're UP */
-static void ipcp_down __P((fsm *)); /* We're DOWN */
-static void ipcp_finished __P((fsm *)); /* Don't need lower layer */
+static void ipcp_resetci(fsm *); /* Reset our CI */
+static int ipcp_cilen(fsm *); /* Return length of our CI */
+static void ipcp_addci(fsm *, u_char *, int *); /* Add our CI */
+static int ipcp_ackci(fsm *, u_char *, int); /* Peer ack'd our CI */
+static int ipcp_nakci(fsm *, u_char *, int); /* Peer nak'd our CI */
+static int ipcp_rejci(fsm *, u_char *, int); /* Peer rej'd our CI */
+static int ipcp_reqci(fsm *, u_char *, int *, int); /* Rcv CI */
+static void ipcp_up(fsm *); /* We're UP */
+static void ipcp_down(fsm *); /* We're DOWN */
+static void ipcp_finished(fsm *); /* Don't need lower layer */
fsm ipcp_fsm[NUM_PPP]; /* IPCP fsm structure */
@@ -99,9 +99,9 @@ static fsm_callbacks ipcp_callbacks = { /* IPCP callback routines */
/*
* Command-line options.
*/
-static int setvjslots __P((char **));
-static int setdnsaddr __P((char **));
-static int setwinsaddr __P((char **));
+static int setvjslots(char **);
+static int setdnsaddr(char **);
+static int setwinsaddr(char **);
static option_t ipcp_option_list[] = {
{ "noip", o_bool, &ipcp_protent.enabled_flag,
@@ -164,19 +164,19 @@ static option_t ipcp_option_list[] = {
/*
* Protocol entry points from main code.
*/
-static void ipcp_init __P((int));
-static void ipcp_open __P((int));
-static void ipcp_close __P((int, char *));
-static void ipcp_lowerup __P((int));
-static void ipcp_lowerdown __P((int));
-static void ipcp_input __P((int, u_char *, int));
-static void ipcp_protrej __P((int));
-static int ipcp_printpkt __P((u_char *, int,
- void (*) __P((void *, char *, ...)), void *));
-static void ip_check_options __P((void));
-static int ip_demand_conf __P((int));
-static int ip_active_pkt __P((u_char *, int));
-static void create_resolv __P((u_int32_t, u_int32_t));
+static void ipcp_init(int);
+static void ipcp_open(int);
+static void ipcp_close(int, char *);
+static void ipcp_lowerup(int);
+static void ipcp_lowerdown(int);
+static void ipcp_input(int, u_char *, int);
+static void ipcp_protrej(int);
+static int ipcp_printpkt(u_char *, int,
+ void (*)(void *, char *, ...), void *);
+static void ip_check_options(void);
+static int ip_demand_conf(int);
+static int ip_active_pkt(u_char *, int);
+static void create_resolv(u_int32_t, u_int32_t);
struct protent ipcp_protent = {
PPP_IPCP,
@@ -198,7 +198,7 @@ struct protent ipcp_protent = {
ip_active_pkt
};
-static void ipcp_clear_addrs __P((int, u_int32_t, u_int32_t));
+static void ipcp_clear_addrs(int, u_int32_t, u_int32_t);
/*
* Lengths of configuration options.
@@ -1604,7 +1604,7 @@ static int
ipcp_printpkt(p, plen, printer, arg)
u_char *p;
int plen;
- void (*printer) __P((void *, char *, ...));
+ void (*printer)(void *, char *, ...);
void *arg;
{
int code, id, len, olen;