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:
Markus Armbruster 2004-02-20 20:45:18 +00:00
parent 46da1aec7a
commit c1be5d8657
18 changed files with 35 additions and 270 deletions

View file

@ -44,6 +44,7 @@
#include "file.h"
#include "tel.h"
#include "commands.h"
#include "optlist.h"
#include <stdio.h>
#include <fcntl.h>

View file

@ -33,6 +33,7 @@
#include "misc.h"
#include "tel.h"
#include "optlist.h"
#include <stdio.h>
s_char *

View file

@ -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);

View file

@ -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];

View file

@ -42,6 +42,7 @@
#include <unistd.h>
#endif
#include "update.h"
#include "optlist.h"
#include "common.h"
void

View file

@ -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>