projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8afa24f
)
Include <stdlib.h>, <string.h> unconditionally.
author
Jim Meyering
<jim@meyering.net>
Wed, 10 Sep 2003 09:07:17 +0000
(09:07 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 10 Sep 2003 09:07:17 +0000
(09:07 +0000)
(main): Define with a prototype.
lib/posixtm.c
patch
|
blob
|
history
diff --git
a/lib/posixtm.c
b/lib/posixtm.c
index
49e239c
..
7ddf182
100644
(file)
--- 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];