* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed

for strtol and errno, and do not include "defines.h" (not needed).
This commit is contained in:
nekral-guest 2009-04-10 22:34:17 +00:00
parent 77459dc27d
commit 1675ca3378
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed
for strtol and errno, and do not include "defines.h" (not needed).
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c,

View File

@ -31,8 +31,9 @@
#ident "$Id$"
#include <stdlib.h>
#include <errno.h>
#include "prototypes.h"
#include "defines.h"
int getlong (const char *numstr, long int *result)
{