There's no reason to include <time.h> in empio.h, except it's missing

in a couple of other files.  Include it where it's needed.
This commit is contained in:
Markus Armbruster 2005-12-28 21:25:39 +00:00
parent 3b90d0cb81
commit 0d267e0b24
9 changed files with 15 additions and 12 deletions

View file

@ -34,8 +34,6 @@
#ifndef _EMPIO_H_
#define _EMPIO_H_
#include <time.h> /* struct timeval */
#define IO_READ 0x1
#define IO_WRITE 0x2
#define IO_NEWSOCK 0x4

View file

@ -36,17 +36,18 @@
#include <config.h>
#include "misc.h"
#include "player.h"
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
#if !defined(_WIN32)
#include <dirent.h>
#else
#include <windows.h>
#endif
#include "misc.h"
#include "player.h"
#include "commands.h"
#include "optlist.h"

View file

@ -33,6 +33,8 @@
#include <config.h>
#include <stdio.h>
#include <time.h>
#include "misc.h"
#include "player.h"
#include "nsc.h"
@ -42,8 +44,6 @@
#include "server.h"
#include "prototypes.h"
#include <stdio.h>
int
mobupdate(void)
{

View file

@ -33,15 +33,15 @@
#include <config.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include "misc.h"
#include "player.h"
#include "tel.h"
#include "commands.h"
#include "optlist.h"
#include <errno.h>
#include <fcntl.h>
/*
* Enable / disable logins and set the message of the day.
*/

View file

@ -35,6 +35,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include "misc.h"
#include "player.h"
#include "commands.h"

View file

@ -37,10 +37,10 @@
#include "misc.h"
#include "tel.h"
#include <stdio.h>
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
#if !defined(_WIN32)
#include <sys/file.h>
#include <unistd.h>
#endif
#include "update.h"

View file

@ -33,6 +33,7 @@
#include <config.h>
#include <time.h>
#include "misc.h"
#include "player.h"
#include "empio.h"

View file

@ -34,10 +34,11 @@
#include <config.h>
#include <stdio.h>
#include <time.h>
#include "misc.h"
#include "player.h"
#include "empthread.h"
#include <stdio.h>
#include "prototypes.h"
#include "optlist.h"
#include "server.h"

View file

@ -39,6 +39,7 @@
#ifndef _WIN32
#include <sys/wait.h>
#endif
#include <time.h>
#include "misc.h"
#include "player.h"
#include "empthread.h"