diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 09:07:17 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 09:07:17 +0000 |
commit | 1512acb7e5228312fda4c5ea9ea1ee3bf08f1db0 (patch) | |
tree | c9be0fdfbd6f06c3d456275d438010aaf8984836 | |
parent | 8afa24fc2f12067b834b8b15beae34384377e93b (diff) | |
download | coreutils-1512acb7e5228312fda4c5ea9ea1ee3bf08f1db0.tar.xz |
Include <stdlib.h>, <string.h> unconditionally.
(main): Define with a prototype.
-rw-r--r-- | lib/posixtm.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/posixtm.c b/lib/posixtm.c index 49e239c88..7ddf182ff 100644 --- a/lib/posixtm.c +++ b/lib/posixtm.c @@ -25,15 +25,9 @@ #include <stdbool.h> #include <stdio.h> -#if HAVE_STDLIB_H -# include <stdlib.h> -#endif +#include <stdlib.h> #include <sys/types.h> -#if HAVE_STRING_H -# include <string.h> -#else -# include <strings.h> -#endif +#include <string.h> #ifdef TM_IN_SYS_TIME # include <sys/time.h> @@ -294,7 +288,7 @@ END-DATA # define MAX_BUFF_LEN 1024 int -main () +main (void) { char buff[MAX_BUFF_LEN + 1]; |