(main): Remove the extern for optarg, get from include file.

(main): Cast getpid() to an int for printing.
This commit is contained in:
Ron Koenderink 2004-12-11 11:15:36 +00:00
parent 2f6fa7ec24
commit 03c96f90d8

View file

@ -105,7 +105,6 @@ main(int argc, char **argv)
int flags = 0;
int op;
char *config_file = NULL;
extern char *optarg;
s_char tbuf[256];
#ifdef POSIXSIGNALS
struct sigaction act;
@ -151,7 +150,7 @@ main(int argc, char **argv)
}
logerror("------------------------------------------------------");
logerror("Empire server (pid %d) started", getpid());
logerror("Empire server (pid %d) started", (int)getpid());
#if defined(_WIN32)
loc_NTInit();