Changeset 5078ee3 in rtems


Ignore:
Timestamp:
Mar 27, 2007, 10:22:16 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a52a20fc
Parents:
6b4010d6
Message:

Eliminate P().

Location:
cpukit/pppd
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cpukit/pppd/chap.h

    r6b4010d6 r5078ee3  
    116116extern chap_state chap[];
    117117
    118 void ChapAuthWithPeer __P((int, char *, int));
    119 void ChapAuthPeer __P((int, char *, int));
     118void ChapAuthWithPeer(int, char *, int);
     119void ChapAuthPeer(int, char *, int);
    120120
    121121extern struct protent chap_protent;
  • cpukit/pppd/chap_ms.h

    r6b4010d6 r5078ee3  
    2828#define MAX_NT_PASSWORD 256     /* Maximum number of (Unicode) chars in an NT password */
    2929
    30 void ChapMS __P((chap_state *, char *, int, char *, int));
     30void ChapMS(chap_state *, char *, int, char *, int);
    3131
    3232#define __CHAPMS_INCLUDE__
  • cpukit/pppd/fsm.h

    r6b4010d6 r5078ee3  
    6363typedef struct fsm_callbacks {
    6464    void (*resetci)             /* Reset our Configuration Information */
    65                 __P((fsm *));
     65                (fsm *);
    6666    int  (*cilen)               /* Length of our Configuration Information */
    67                 __P((fsm *));
     67                (fsm *);
    6868    void (*addci)               /* Add our Configuration Information */
    69                 __P((fsm *, u_char *, int *));
     69                (fsm *, u_char *, int *);
    7070    int  (*ackci)               /* ACK our Configuration Information */
    71                 __P((fsm *, u_char *, int));
     71                (fsm *, u_char *, int);
    7272    int  (*nakci)               /* NAK our Configuration Information */
    73                 __P((fsm *, u_char *, int));
     73                (fsm *, u_char *, int);
    7474    int  (*rejci)               /* Reject our Configuration Information */
    75                 __P((fsm *, u_char *, int));
     75                (fsm *, u_char *, int);
    7676    int  (*reqci)               /* Request peer's Configuration Information */
    77                 __P((fsm *, u_char *, int *, int));
     77                (fsm *, u_char *, int *, int);
    7878    void (*up)                  /* Called when fsm reaches OPENED state */
    79                 __P((fsm *));
     79                (fsm *);
    8080    void (*down)                /* Called when fsm leaves OPENED state */
    81                 __P((fsm *));
     81                (fsm *);
    8282    void (*starting)            /* Called when we want the lower layer */
    83                 __P((fsm *));
     83                (fsm *);
    8484    void (*finished)            /* Called when we don't want the lower layer */
    85                 __P((fsm *));
     85                (fsm *);
    8686    void (*protreject)          /* Called when Protocol-Reject received */
    87                 __P((int));
     87                (int);
    8888    void (*retransmit)          /* Retransmission is necessary */
    89                 __P((fsm *));
     89                (fsm *);
    9090    int  (*extcode)             /* Called when unknown code received */
    91                 __P((fsm *, int, int, u_char *, int));
     91                (fsm *, int, int, u_char *, int);
    9292    char *proto_name;           /* String name for protocol (for messages) */
    9393} fsm_callbacks;
     
    129129 * Prototypes
    130130 */
    131 void fsm_init __P((fsm *));
    132 void fsm_lowerup __P((fsm *));
    133 void fsm_lowerdown __P((fsm *));
    134 void fsm_open __P((fsm *));
    135 void fsm_close __P((fsm *, char *));
    136 void fsm_input __P((fsm *, u_char *, int));
    137 void fsm_protreject __P((fsm *));
    138 void fsm_sdata __P((fsm *, u_char, u_char, u_char *, int));
     131void fsm_init(fsm *);
     132void fsm_lowerup(fsm *);
     133void fsm_lowerdown(fsm *);
     134void fsm_open(fsm *);
     135void fsm_close(fsm *, char *);
     136void fsm_input(fsm *, u_char *, int);
     137void fsm_protreject(fsm *);
     138void fsm_sdata(fsm *, u_char, u_char, u_char *, int);
    139139
    140140
  • cpukit/pppd/ipcp.h

    r6b4010d6 r5078ee3  
    6969extern ipcp_options ipcp_hisoptions[];
    7070
    71 char *ip_ntoa __P((u_int32_t));
     71char *ip_ntoa(u_int32_t);
    7272
    7373extern struct protent ipcp_protent;
  • cpukit/pppd/lcp.h

    r6b4010d6 r5078ee3  
    7676#define MAXMRU  16384           /* Normally limit MRU to this */
    7777
    78 void lcp_open __P((int));
    79 void lcp_close __P((int, char *));
    80 void lcp_lowerup __P((int));
    81 void lcp_lowerdown __P((int));
    82 void lcp_sprotrej __P((int, u_char *, int));    /* send protocol reject */
     78void lcp_open(int);
     79void lcp_close(int, char *);
     80void lcp_lowerup(int);
     81void lcp_lowerdown(int);
     82void lcp_sprotrej(int, u_char *, int);  /* send protocol reject */
    8383
    8484extern struct protent lcp_protent;
  • cpukit/pppd/magic.h

    r6b4010d6 r5078ee3  
    2020 */
    2121
    22 void magic_init __P((void));    /* Initialize the magic number generator */
    23 u_int32_t magic __P((void));    /* Returns the next magic number */
     22void magic_init(void);  /* Initialize the magic number generator */
     23u_int32_t magic(void);  /* Returns the next magic number */
  • cpukit/pppd/md4.h

    r6b4010d6 r5078ee3  
    88** ********************************************************************
    99*/
    10 
    11 #ifndef __P
    12 # if defined(__STDC__) || defined(__GNUC__)
    13 #  define __P(x) x
    14 # else
    15 #  define __P(x) ()
    16 # endif
    17 #endif
    1810
    1911#include <stdint.h>
     
    3123** computation.
    3224*/
    33 extern void MD4Init __P((MD4_CTX *MD));
     25extern void MD4Init(MD4_CTX *MD);
    3426
    3527/* MD4Update(MD,X,count)
     
    4537** count less than 512.  Zero is OK for a count.
    4638*/
    47 extern void MD4Update __P((MD4_CTX *MD, unsigned char *X, unsigned int count));
     39extern void MD4Update(MD4_CTX *MD, unsigned char *X, unsigned int count);
    4840
    4941/* MD4Print(MD)
     
    5345** Each byte is printed with high-order hexadecimal digit first.
    5446*/
    55 extern void MD4Print __P((MD4_CTX *));
     47extern void MD4Print(MD4_CTX *);
    5648
    5749/* MD4Final(buf, MD)
     
    5951** digest computation.
    6052*/
    61 extern void MD4Final __P((unsigned char *, MD4_CTX *));
     53extern void MD4Final(unsigned char *, MD4_CTX *);
    6254
    6355/*
  • cpukit/pppd/pppd.h

    r6b4010d6 r5078ee3  
    250250    u_short protocol;           /* PPP protocol number */
    251251    /* Initialization procedure */
    252     void (*init) __P((int unit));
     252    void (*init)(int unit);
    253253    /* Process a received packet */
    254     void (*input) __P((int unit, u_char *pkt, int len));
     254    void (*input)(int unit, u_char *pkt, int len);
    255255    /* Process a received protocol-reject */
    256     void (*protrej) __P((int unit));
     256    void (*protrej)(int unit);
    257257    /* Lower layer has come up */
    258     void (*lowerup) __P((int unit));
     258    void (*lowerup)(int unit);
    259259    /* Lower layer has gone down */
    260     void (*lowerdown) __P((int unit));
     260    void (*lowerdown)(int unit);
    261261    /* Open the protocol */
    262     void (*open) __P((int unit));
     262    void (*open)(int unit);
    263263    /* Close the protocol */
    264     void (*close) __P((int unit, char *reason));
     264    void (*close)(int unit, char *reason);
    265265    /* Print a packet in readable form */
    266     int  (*printpkt) __P((u_char *pkt, int len,
    267                           void (*printer) __P((void *, char *, ...)),
    268                           void *arg));
     266    int  (*printpkt)(u_char *pkt, int len,
     267                          void (*printer)(void *, char *, ...),
     268                          void *arg);
    269269    /* Process a received data packet */
    270     void (*datainput) __P((int unit, u_char *pkt, int len));
     270    void (*datainput)(int unit, u_char *pkt, int len);
    271271    bool enabled_flag;          /* 0 iff protocol is disabled */
    272272    char *name;                 /* Text name of protocol */
     
    274274    option_t *options;          /* List of command-line options */
    275275    /* Check requested options, assign defaults */
    276     void (*check_options) __P((void));
     276    void (*check_options)(void);
    277277    /* Configure interface for demand-dial */
    278     int  (*demand_conf) __P((int unit));
     278    int  (*demand_conf)(int unit);
    279279    /* Say whether to bring up link for this pkt */
    280     int  (*active_pkt) __P((u_char *pkt, int len));
     280    int  (*active_pkt)(u_char *pkt, int len);
    281281};
    282282
     
    289289
    290290/* Procedures exported from main.c. */
    291 void die __P((int));            /* Cleanup and exit */
    292 void quit __P((void));          /* like die(1) */
    293 void novm __P((char *));        /* Say we ran out of memory, and die */
    294 void ppptimeout __P((void (*func)(void *), void *arg, int t));
     291void die(int);          /* Cleanup and exit */
     292void quit(void);                /* like die(1) */
     293void novm(char *);      /* Say we ran out of memory, and die */
     294void ppptimeout(void (*func)(void *), void *arg, int t);
    295295                                /* Call func(arg) after t seconds */
    296 void pppuntimeout __P((void (*func)(void *), void *arg));
     296void pppuntimeout(void (*func)(void *), void *arg);
    297297                                /* Cancel call to func(arg) */
    298 void update_link_stats __P((int)); /* Get stats at link termination */
    299 void new_phase __P((int));      /* signal start of new phase */
     298void update_link_stats(int); /* Get stats at link termination */
     299void new_phase(int);    /* signal start of new phase */
    300300
    301301/* Procedures exported from utils.c. */
    302 void log_packet __P((u_char *, int, char *, int));
     302void log_packet(u_char *, int, char *, int);
    303303                                /* Format a packet and log it with syslog */
    304 void print_string __P((void *, int,  void (*) (void *, char *, ...),
    305                 void *));       /* Format a string for output */
    306 int slprintf __P((char *, int, char *, ...));           /* sprintf++ */
    307 int vslprintf __P((char *, int, char *, va_list));      /* vsprintf++ */
    308 size_t strlcpy __P((char *, const char *, size_t));     /* safe strcpy */
    309 size_t strlcat __P((char *, const char *, size_t));     /* safe strncpy */
    310 void pppd_dbglog __P((char *, ...));    /* log a debug message */
    311 void pppd_info __P((char *, ...));      /* log an informational message */
    312 void pppd_notice __P((char *, ...));    /* log a notice-level message */
    313 void pppd_warn __P((char *, ...));      /* log a warning message */
    314 void pppd_error __P((char *, ...));     /* log an error message */
    315 void pppd_fatal __P((char *, ...));     /* log an error message and die(1) */
     304void print_string(void *, int,  void (*) (void *, char *, ...),
     305                void *);        /* Format a string for output */
     306int slprintf(char *, int, char *, ...);         /* sprintf++ */
     307int vslprintf(char *, int, char *, va_list);    /* vsprintf++ */
     308size_t strlcpy(char *, const char *, size_t);   /* safe strcpy */
     309size_t strlcat(char *, const char *, size_t);   /* safe strncpy */
     310void pppd_dbglog(char *, ...);  /* log a debug message */
     311void pppd_info(char *, ...);    /* log an informational message */
     312void pppd_notice(char *, ...);  /* log a notice-level message */
     313void pppd_warn(char *, ...);    /* log a warning message */
     314void pppd_error(char *, ...);   /* log an error message */
     315void pppd_fatal(char *, ...);   /* log an error message and die(1) */
    316316
    317317#define dbglog pppd_dbglog
     
    323323
    324324/* Procedures exported from auth.c */
    325 void link_required __P((int));    /* we are starting to use the link */
    326 void link_terminated __P((int));  /* we are finished with the link */
    327 void link_down __P((int));        /* the LCP layer has left the Opened state */
    328 void link_established __P((int)); /* the link is up; authenticate now */
    329 void start_networks __P((void));  /* start all the network control protos */
    330 void np_up __P((int, int));       /* a network protocol has come up */
    331 void np_down __P((int, int));     /* a network protocol has gone down */
    332 void np_finished __P((int, int)); /* a network protocol no longer needs link */
    333 void auth_peer_fail __P((int, int));
     325void link_required(int);          /* we are starting to use the link */
     326void link_terminated(int);  /* we are finished with the link */
     327void link_down(int);      /* the LCP layer has left the Opened state */
     328void link_established(int); /* the link is up; authenticate now */
     329void start_networks(void);  /* start all the network control protos */
     330void np_up(int, int);     /* a network protocol has come up */
     331void np_down(int, int);   /* a network protocol has gone down */
     332void np_finished(int, int); /* a network protocol no longer needs link */
     333void auth_peer_fail(int, int);
    334334                                /* peer failed to authenticate itself */
    335 void auth_peer_success __P((int, int, char *, int));
     335void auth_peer_success(int, int, char *, int);
    336336                                /* peer successfully authenticated itself */
    337 void auth_withpeer_fail __P((int, int));
     337void auth_withpeer_fail(int, int);
    338338                                /* we failed to authenticate ourselves */
    339 void auth_withpeer_success __P((int, int));
     339void auth_withpeer_success(int, int);
    340340                                /* we successfully authenticated ourselves */
    341 int  auth_check_options __P((void));
     341int  auth_check_options(void);
    342342                                /* check authentication options supplied */
    343 void auth_reset __P((int));     /* check what secrets we have */
    344 int  check_passwd __P((int, char *, int, char *, int, char **));
     343void auth_reset(int);   /* check what secrets we have */
     344int  check_passwd(int, char *, int, char *, int, char **);
    345345                                /* Check peer-supplied username/password */
    346 int  get_secret __P((int, char *, char *, unsigned char *, int *, int));
     346int  get_secret(int, char *, char *, unsigned char *, int *, int);
    347347                                /* get "secret" for chap */
    348 int  auth_ip_addr __P((int, u_int32_t));
     348int  auth_ip_addr(int, u_int32_t);
    349349                                /* check if IP address is authorized */
    350 int  bad_ip_adrs __P((u_int32_t));
     350int  bad_ip_adrs(u_int32_t);
    351351                                /* check if IP address is unreasonable */
    352352
    353353/* Procedures exported from demand.c */
    354 void demand_conf __P((void));   /* config interface(s) for demand-dial */
    355 void demand_block __P((void));  /* set all NPs to queue up packets */
    356 void demand_unblock __P((void)); /* set all NPs to pass packets */
    357 void demand_discard __P((void)); /* set all NPs to discard packets */
    358 void demand_rexmit __P((int));  /* retransmit saved frames for an NP */
    359 int  loop_chars __P((unsigned char *, int)); /* process chars from loopback */
    360 int  loop_frame __P((unsigned char *, int)); /* should we bring link up? */
     354void demand_conf(void); /* config interface(s) for demand-dial */
     355void demand_block(void);        /* set all NPs to queue up packets */
     356void demand_unblock(void); /* set all NPs to pass packets */
     357void demand_discard(void); /* set all NPs to discard packets */
     358void demand_rexmit(int);        /* retransmit saved frames for an NP */
     359int  loop_chars(unsigned char *, int); /* process chars from loopback */
     360int  loop_frame(unsigned char *, int); /* should we bring link up? */
    361361
    362362/* Procedures exported from sys-*.c */
    363 void sys_init __P((void));      /* Do system-dependent initialization */
    364 void sys_cleanup __P((void));   /* Restore system state before exiting */
    365 int  sys_check_options __P((void)); /* Check options specified */
    366 void sys_close __P((void));     /* Clean up in a child before execing */
    367 int  ppp_available __P((void)); /* Test whether ppp kernel support exists */
    368 int  get_pty __P((int *, int *, char *, int));  /* Get pty master/slave */
    369 int  open_ppp_loopback __P((void)); /* Open loopback for demand-dialling */
    370 int  establish_ppp __P((int));  /* Turn serial port into a ppp interface */
    371 void restore_loop __P((void));  /* Transfer ppp unit back to loopback */
    372 void disestablish_ppp __P((int)); /* Restore port to normal operation */
    373 void clean_check __P((void));   /* Check if line was 8-bit clean */
    374 void set_up_tty __P((int, int)); /* Set up port's speed, parameters, etc. */
    375 void restore_tty __P((int));    /* Restore port's original parameters */
    376 void setdtr __P((int, int));    /* Raise or lower port's DTR line */
    377 void output __P((int, u_char *, int)); /* Output a PPP packet */
    378 void wait_input __P((struct timeval *)); /* Wait for input, with timeout */
    379 
    380 void ppp_delay __P((void));       /* delay task for a little while */
    381 int  read_packet __P((u_char *)); /* Read PPP packet */
    382 int  get_loop_output __P((void)); /* Read pkts from loopback */
    383 void ppp_send_config __P((int, int, u_int32_t, int, int));
     363void sys_init(void);    /* Do system-dependent initialization */
     364void sys_cleanup(void); /* Restore system state before exiting */
     365int  sys_check_options(void); /* Check options specified */
     366void sys_close(void);   /* Clean up in a child before execing */
     367int  ppp_available(void);       /* Test whether ppp kernel support exists */
     368int  get_pty(int *, int *, char *, int);        /* Get pty master/slave */
     369int  open_ppp_loopback(void); /* Open loopback for demand-dialling */
     370int  establish_ppp(int);        /* Turn serial port into a ppp interface */
     371void restore_loop(void);        /* Transfer ppp unit back to loopback */
     372void disestablish_ppp(int); /* Restore port to normal operation */
     373void clean_check(void); /* Check if line was 8-bit clean */
     374void set_up_tty(int, int); /* Set up port's speed, parameters, etc. */
     375void restore_tty(int);  /* Restore port's original parameters */
     376void setdtr(int, int);  /* Raise or lower port's DTR line */
     377void output(int, u_char *, int); /* Output a PPP packet */
     378void wait_input(struct timeval *); /* Wait for input, with timeout */
     379
     380void ppp_delay(void);       /* delay task for a little while */
     381int  read_packet(u_char *); /* Read PPP packet */
     382int  get_loop_output(void); /* Read pkts from loopback */
     383void ppp_send_config(int, int, u_int32_t, int, int);
    384384                                /* Configure i/f transmit parameters */
    385 void ppp_set_xaccm __P((int, ext_accm));
     385void ppp_set_xaccm(int, ext_accm);
    386386                                /* Set extended transmit ACCM */
    387 void ppp_recv_config __P((int, int, u_int32_t, int, int));
     387void ppp_recv_config(int, int, u_int32_t, int, int);
    388388                                /* Configure i/f receive parameters */
    389 int  ccp_test __P((int, u_char *, int, int));
     389int  ccp_test(int, u_char *, int, int);
    390390                                /* Test support for compression scheme */
    391 void ccp_flags_set __P((int, int, int));
     391void ccp_flags_set(int, int, int);
    392392                                /* Set kernel CCP state */
    393 int  ccp_fatal_error __P((int)); /* Test for fatal decomp error in kernel */
    394 int  get_idle_time __P((int, struct ppp_idle *));
     393int  ccp_fatal_error(int); /* Test for fatal decomp error in kernel */
     394int  get_idle_time(int, struct ppp_idle *);
    395395                                /* Find out how long link has been idle */
    396 int  get_ppp_stats __P((int, struct pppd_stats *));
     396int  get_ppp_stats(int, struct pppd_stats *);
    397397                                /* Return link statistics */
    398 int  sifvjcomp __P((int, int, int, int));
     398int  sifvjcomp(int, int, int, int);
    399399                                /* Configure VJ TCP header compression */
    400 int  sifup __P((int));          /* Configure i/f up for one protocol */
    401 int  sifnpmode __P((int u, int proto, enum NPmode mode));
     400int  sifup(int);                /* Configure i/f up for one protocol */
     401int  sifnpmode(int u, int proto, enum NPmode mode);
    402402                                /* Set mode for handling packets for proto */
    403 int  sifdown __P((int));        /* Configure i/f down for one protocol */
    404 int  sifaddr __P((int, u_int32_t, u_int32_t, u_int32_t));
     403int  sifdown(int);      /* Configure i/f down for one protocol */
     404int  sifaddr(int, u_int32_t, u_int32_t, u_int32_t);
    405405                                /* Configure IPv4 addresses for i/f */
    406 int  cifaddr __P((int, u_int32_t, u_int32_t));
     406int  cifaddr(int, u_int32_t, u_int32_t);
    407407                                /* Reset i/f IP addresses */
    408408#ifdef INET6
    409 int  sif6addr __P((int, eui64_t, eui64_t));
     409int  sif6addr(int, eui64_t, eui64_t);
    410410                                /* Configure IPv6 addresses for i/f */
    411 int  cif6addr __P((int, eui64_t, eui64_t));
     411int  cif6addr(int, eui64_t, eui64_t);
    412412                                /* Remove an IPv6 address from i/f */
    413413#endif
    414 int  sifdefaultroute __P((int, u_int32_t, u_int32_t));
     414int  sifdefaultroute(int, u_int32_t, u_int32_t);
    415415                                /* Create default route through i/f */
    416 int  cifdefaultroute __P((int, u_int32_t, u_int32_t));
     416int  cifdefaultroute(int, u_int32_t, u_int32_t);
    417417                                /* Delete default route through i/f */
    418 int  sifproxyarp __P((int, u_int32_t));
     418int  sifproxyarp(int, u_int32_t);
    419419                                /* Add proxy ARP entry for peer */
    420 int  cifproxyarp __P((int, u_int32_t));
     420int  cifproxyarp(int, u_int32_t);
    421421                                /* Delete proxy ARP entry for peer */
    422 u_int32_t GetMask __P((u_int32_t)); /* Get appropriate netmask for address */
    423 int  lock __P((char *));        /* Create lock file for device */
    424 int  relock __P((int));         /* Rewrite lock file with new pid */
    425 void unlock __P((void));        /* Delete previously-created lock file */
    426 void logwtmp __P((const char *, const char *, const char *));
     422u_int32_t GetMask(u_int32_t); /* Get appropriate netmask for address */
     423int  lock(char *);      /* Create lock file for device */
     424int  relock(int);               /* Rewrite lock file with new pid */
     425void unlock(void);      /* Delete previously-created lock file */
     426void logwtmp(const char *, const char *, const char *);
    427427                                /* Write entry to wtmp file */
    428 int  get_host_seed __P((void)); /* Get host-dependent random number seed */
    429 int  have_route_to __P((u_int32_t)); /* Check if route to addr exists */
     428int  get_host_seed(void);       /* Get host-dependent random number seed */
     429int  have_route_to(u_int32_t); /* Check if route to addr exists */
    430430#ifdef PPP_FILTER
    431 int  set_filters __P((struct bpf_program *pass, struct bpf_program *active));
     431int  set_filters(struct bpf_program *pass, struct bpf_program *active);
    432432                                /* Set filter programs in kernel */
    433433#endif
    434434#ifdef IPX_CHANGE
    435 int  sipxfaddr __P((int, unsigned long, unsigned char *));
    436 int  cipxfaddr __P((int));
     435int  sipxfaddr(int, unsigned long, unsigned char *);
     436int  cipxfaddr(int);
    437437#endif
    438438
    439439/* Procedures exported from options.c */
    440 int  parse_args __P((int argc, char **argv));
     440int  parse_args(int argc, char **argv);
    441441                                /* Parse options from arguments given */
    442 int  options_from_file __P((char *filename, int must_exist, int check_prot,
    443                             int privileged));
     442int  options_from_file(char *filename, int must_exist, int check_prot,
     443                            int privileged);
    444444                                /* Parse options from an options file */
    445 int  options_from_user __P((void)); /* Parse options from user's .ppprc */
    446 int  options_for_tty __P((void)); /* Parse options from /etc/ppp/options.tty */
    447 int  options_from_list __P((struct wordlist *, int privileged));
     445int  options_from_user(void); /* Parse options from user's .ppprc */
     446int  options_for_tty(void); /* Parse options from /etc/ppp/options.tty */
     447int  options_from_list(struct wordlist *, int privileged);
    448448                                /* Parse options from a wordlist */
    449 int  getword __P((FILE *f, char *word, int *newlinep, char *filename));
     449int  getword(FILE *f, char *word, int *newlinep, char *filename);
    450450                                /* Read a word from a file */
    451 void option_error __P((char *fmt, ...));
     451void option_error(char *fmt, ...);
    452452                                /* Print an error message about an option */
    453 int int_option __P((char *, int *));
     453int int_option(char *, int *);
    454454                                /* Simplified number_option for decimal ints */
    455 void add_options __P((option_t *)); /* Add extra options */
     455void add_options(option_t *); /* Add extra options */
    456456
    457457/*
     
    476476 * Hooks to enable plugins to change various things.
    477477 */
    478 extern int (*new_phase_hook) __P((int));
    479 extern int (*idle_time_hook) __P((struct ppp_idle *));
    480 extern int (*holdoff_hook) __P((void));
    481 extern int (*pap_check_hook) __P((void));
    482 extern int (*pap_auth_hook) __P((char *user, char *passwd/*, char **msgp,
     478extern int (*new_phase_hook)(int);
     479extern int (*idle_time_hook)(struct ppp_idle *);
     480extern int (*holdoff_hook)(void);
     481extern int (*pap_check_hook)(void);
     482extern int (*pap_auth_hook)(char *user, char *passwd/*, char **msgp,
    483483                                 struct wordlist **paddrs,
    484                                  struct wordlist **popts*/));
    485 extern void (*pap_logout_hook) __P((void));
    486 extern int (*pap_passwd_hook) __P((char *user, char *passwd));
    487 extern void (*ip_up_hook) __P((void));
    488 extern void (*ip_down_hook) __P((void));
    489 extern void (*auth_linkup_hook) __P((void));
    490 extern void (*auth_linkdown_hook) __P((void));
     484                                 struct wordlist **popts*/);
     485extern void (*pap_logout_hook)(void);
     486extern int (*pap_passwd_hook)(char *user, char *passwd);
     487extern void (*ip_up_hook)(void);
     488extern void (*ip_down_hook)(void);
     489extern void (*auth_linkup_hook)(void);
     490extern void (*auth_linkdown_hook)(void);
    491491
    492492/*
  • cpukit/pppd/upap.h

    r6b4010d6 r5078ee3  
    8282extern upap_state upap[];
    8383
    84 void upap_authwithpeer __P((int, char *, char *));
    85 void upap_authpeer __P((int));
     84void upap_authwithpeer(int, char *, char *);
     85void upap_authpeer(int);
    8686
    8787extern struct protent pap_protent;
Note: See TracChangeset for help on using the changeset viewer.