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:
parent
3b90d0cb81
commit
0d267e0b24
9 changed files with 15 additions and 12 deletions
|
@ -34,8 +34,6 @@
|
||||||
#ifndef _EMPIO_H_
|
#ifndef _EMPIO_H_
|
||||||
#define _EMPIO_H_
|
#define _EMPIO_H_
|
||||||
|
|
||||||
#include <time.h> /* struct timeval */
|
|
||||||
|
|
||||||
#define IO_READ 0x1
|
#define IO_READ 0x1
|
||||||
#define IO_WRITE 0x2
|
#define IO_WRITE 0x2
|
||||||
#define IO_NEWSOCK 0x4
|
#define IO_NEWSOCK 0x4
|
||||||
|
|
|
@ -36,17 +36,18 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "misc.h"
|
|
||||||
#include "player.h"
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <time.h>
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#else
|
#else
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include "misc.h"
|
||||||
|
#include "player.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "optlist.h"
|
#include "optlist.h"
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <time.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "nsc.h"
|
#include "nsc.h"
|
||||||
|
@ -42,8 +44,6 @@
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
#include "prototypes.h"
|
#include "prototypes.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int
|
int
|
||||||
mobupdate(void)
|
mobupdate(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,15 +33,15 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "tel.h"
|
#include "tel.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "optlist.h"
|
#include "optlist.h"
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enable / disable logins and set the message of the day.
|
* Enable / disable logins and set the message of the day.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <time.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
|
|
|
@ -37,10 +37,10 @@
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "tel.h"
|
#include "tel.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <time.h>
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <sys/file.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include "update.h"
|
#include "update.h"
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <time.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "empio.h"
|
#include "empio.h"
|
||||||
|
|
|
@ -34,10 +34,11 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <time.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "empthread.h"
|
#include "empthread.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include "prototypes.h"
|
#include "prototypes.h"
|
||||||
#include "optlist.h"
|
#include "optlist.h"
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <time.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "empthread.h"
|
#include "empthread.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue