]> granicus.if.org Git - shadow/commitdiff
* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 10 Apr 2009 22:34:17 +0000 (22:34 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 10 Apr 2009 22:34:17 +0000 (22:34 +0000)
for strtol and errno, and do not include "defines.h" (not needed).

ChangeLog
libmisc/getlong.c

index 99be15cbe413180ae1a9be1be8b75f31a49395ce..5b4ce3c5aa9d5000f118ec3ec3446501e2525dae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
index 48914b37b99665278c694c9db7f7089800c3e107..7f4c7d7cd5ebcc80e0906b71371616690094a1d1 100644 (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)
 {