errno may not be a variable; users must include errno.h instead of
declaring it like `extern int errno'.
This commit is contained in:
parent
5f3b32fd36
commit
3bf2b1b47f
8 changed files with 2 additions and 19 deletions
|
@ -33,6 +33,7 @@
|
|||
* Steve McClure, 1998
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "misc.h"
|
||||
#include "nat.h"
|
||||
|
@ -59,7 +60,6 @@ int
|
|||
gamehours(time_t now, int *hour)
|
||||
{
|
||||
extern s_char *game_days, *game_hours;
|
||||
extern int errno;
|
||||
extern struct tm *localtime(const time_t *);
|
||||
register s_char *bp;
|
||||
register struct tm *tm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue