Remove K&R cruft.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Sep 2003 03:47:34 +0000 (03:47 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Sep 2003 03:47:34 +0000 (03:47 +0000)
lib/posixtm.c
lib/posixver.c
m4/posixtm.m4
m4/posixver.m4

index 49e239c88819f1a603839f7168c8c67b602eb9a1..7ddf182ff7345631b1d4bb7d7f641940dcfd49cc 100644 (file)
 #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];
 
index 9467a78cdb71cc19db74b7f5b6d2c685b7e004ff..d4761edf960dc0b51c7c59012821ba8f569851f6 100644 (file)
@@ -1,6 +1,6 @@
 /* Which POSIX version to conform to, for utilities.
 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #endif
 
 #include <limits.h>
-
 #include <stdlib.h>
-#if !HAVE_DECL_GETENV && !defined getenv
-char *getenv ();
-#endif
 
 #if HAVE_UNISTD_H
 # include <unistd.h>
index 45635bc412cc9a27bd968b8f5097aa3bf19cd627..0bf4aca17327d98154fdd67678437f2464413d86 100644 (file)
@@ -1,5 +1,5 @@
-# posixtm.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# posixtm.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -10,5 +10,4 @@ AC_DEFUN([gl_POSIXTM],
 [
   dnl Prerequisites of lib/posixtm.c.
   AC_STRUCT_TM
-  AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
 ])
index 17eb7c14b1df47b16189caef4d500da1784349a4..d0639c7adb61f8a75b8cf567edac97ae4981a9ed 100644 (file)
@@ -1,5 +1,5 @@
-# posixver.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# posixver.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -9,5 +9,4 @@ dnl the same distribution terms as the rest of that program.
 AC_DEFUN([gl_POSIXVER],
 [
   AC_CHECK_HEADERS_ONCE(unistd.h)
-  AC_CHECK_DECLS_ONCE(getenv)
 ])