Don't declare things in more than one place. Move some declarations
between headers. Code is now fully prototyped and compiles cleanly with gcc -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wredundant-decls. Closes #723788.
This commit is contained in:
parent
46da1aec7a
commit
c1be5d8657
18 changed files with 35 additions and 270 deletions
|
@ -44,6 +44,7 @@
|
|||
#include "file.h"
|
||||
#include "tel.h"
|
||||
#include "commands.h"
|
||||
#include "optlist.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "tel.h"
|
||||
#include "optlist.h"
|
||||
#include <stdio.h>
|
||||
|
||||
s_char *
|
||||
|
|
|
@ -85,7 +85,6 @@ typedef struct {
|
|||
/* internal routines */
|
||||
void lwpAddTail(struct lwpQueue *, struct lwpProc *);
|
||||
struct lwpProc *lwpGetFirst(struct lwpQueue *);
|
||||
void lwpReschedule(void);
|
||||
void lwpReady(struct lwpProc *);
|
||||
void lwpOnalarm(void);
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
#include "file.h"
|
||||
#include "player.h"
|
||||
#include "server.h"
|
||||
#include "optlist.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
static struct telstr last_tel[MAXNOC];
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include "update.h"
|
||||
#include "optlist.h"
|
||||
#include "common.h"
|
||||
|
||||
void
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#include "update.h"
|
||||
#include "common.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
#include <stdlib.h>
|
||||
#if !defined(_WIN32)
|
||||
#include <sys/time.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue