Supply prototypes where possible. This uncovered type errors with
thread entrypoints: (lwpSelect, shutdown_sequence): Parameters didn't match thread entry point prototype. (lwpEntryPoint): Arguments didn't match thread entry point prototype. Change linkage of functions without prototype declaration to static where possible. Remove some superflous declarations, replace others by suitable includes.
This commit is contained in:
parent
7dbb87b0e0
commit
237baffca9
108 changed files with 505 additions and 877 deletions
|
@ -165,9 +165,9 @@ extern struct as_path *as_find_cachepath(coord fx,
|
|||
/* Functions that are "private" to algorithm */
|
||||
|
||||
extern void as_add_cachepath(struct as_data *adp);
|
||||
extern void as_clear_cachepath();
|
||||
extern void as_enable_cachepath();
|
||||
extern void as_disable_cachepath();
|
||||
extern void as_clear_cachepath(void);
|
||||
extern void as_enable_cachepath(void);
|
||||
extern void as_disable_cachepath(void);
|
||||
|
||||
extern void as_makepath(struct as_data *adp);
|
||||
extern void as_free_path(struct as_path *pp);
|
||||
|
|
|
@ -55,13 +55,13 @@ static struct as_frompath **fromhead = (struct as_frompath **)0;
|
|||
static int as_cachepath_on = 0; /* Default to off */
|
||||
|
||||
void
|
||||
as_enable_cachepath()
|
||||
as_enable_cachepath(void)
|
||||
{
|
||||
as_cachepath_on = 1;
|
||||
}
|
||||
|
||||
void
|
||||
as_disable_cachepath()
|
||||
as_disable_cachepath(void)
|
||||
{
|
||||
as_cachepath_on = 0;
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ as_add_cachepath(struct as_data *adp)
|
|||
}
|
||||
|
||||
void
|
||||
as_clear_cachepath()
|
||||
as_clear_cachepath(void)
|
||||
{
|
||||
struct as_frompath *from, *from2;
|
||||
struct as_topath *to, *to2;
|
||||
|
|
|
@ -47,7 +47,6 @@ as_search(struct as_data *adp)
|
|||
struct as_queue *qp;
|
||||
struct as_path *pp;
|
||||
#endif /* DEBUG */
|
||||
struct as_queue *as_extend(struct as_data *adp);
|
||||
|
||||
as_reset(adp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue