Remove K&R cruft.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Sep 2003 22:41:13 +0000 (22:41 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Sep 2003 22:41:13 +0000 (22:41 +0000)
lib/mktime.c
lib/modechange.c
lib/mountlist.c
m4/mktime.m4
m4/modechange.m4
m4/mountlist.m4

index 5a17eecc60f7f5c24158ea5c0e2bc6679d07b44e..3dab58ad813fa1645500f938e872b28b7e9b0ad1 100644 (file)
 # include <config.h>
 #endif
 
-#ifdef _LIBC
-# define STDC_HEADERS 1
-#endif
-
 /* Assume that leap seconds are possible, unless told otherwise.
    If the host has a `zic' command with a `-L leapsecondfilename' option,
    then it supports leap seconds; otherwise it probably doesn't.  */
 
 #if DEBUG
 # include <stdio.h>
-# if STDC_HEADERS
-#  include <stdlib.h>
-#  include <string.h>
-# endif
+# include <stdlib.h>
+# include <string.h>
 /* Make it work even if the system's libc has its own mktime routine.  */
 # define mktime my_mktime
 #endif /* DEBUG */
@@ -625,6 +619,6 @@ main (int argc, char **argv)
 \f
 /*
 Local Variables:
-compile-command: "gcc -DDEBUG -DSTDC_HEADERS -Wall -W -O -g mktime.c -o mktime"
+compile-command: "gcc -DDEBUG -Wall -W -O -g mktime.c -o mktime"
 End:
 */
index 8cec11d41fc404cc847f1cd97f94aa87beaaedf0..c9bdbe7bdb1ce42d88dbc4ac8eaf305f5a9c578e 100644 (file)
 #include <sys/stat.h>
 #include "xstrtol.h"
 #include <stddef.h>
-
-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-char *malloc ();
-#endif
+#include <stdlib.h>
 
 #if STAT_MACROS_BROKEN
 # undef S_ISDIR
index a2c1c2569ff3da887551106e4b7578de152bacb8..096593fb17e405707d4faedc3d010655c4980327 100644 (file)
 
 #include <stdio.h>
 #include <sys/types.h>
+#include <stdlib.h>
+#include <string.h>
 
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-#else
-void free ();
-#endif
-#if defined STDC_HEADERS || defined HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
 #include "xalloc.h"
 
 #ifndef strstr
index 739757b6a20ab3ab5efd6f23859e6b9e2e994297..94ed67f7060b317ac0ec6ea7f8b2a21833c05dd4 100644 (file)
@@ -1,4 +1,4 @@
-# mktime.m4 serial 3
+# mktime.m4 serial 4
 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
@@ -199,6 +199,4 @@ AC_DEFUN([gl_FUNC_MKTIME],
 ])
 
 # Prerequisites of lib/mktime.c.
-AC_DEFUN([gl_PREREQ_MKTIME], [
-  AC_REQUIRE([AC_HEADER_STDC])
-])
+AC_DEFUN([gl_PREREQ_MKTIME], [:])
index d5403e91d5f6e54d52431f749337a04520099d99..80b03c967abe51bb9770fc6ac5f69d02cd790893 100644 (file)
@@ -1,5 +1,5 @@
-# modechange.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# modechange.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
@@ -8,6 +8,5 @@ dnl the same distribution terms as the rest of that program.
 
 AC_DEFUN([gl_MODECHANGE],
 [
-  AC_REQUIRE([AC_HEADER_STDC])
   AC_REQUIRE([AC_HEADER_STAT])
 ])
index c2af19a919b690b679e73f35424628c0f64c6a82..6a6b38c3fe63bfa6565612bbbd8c96ec53962239 100644 (file)
@@ -1,5 +1,5 @@
-# mountlist.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# mountlist.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
@@ -19,9 +19,8 @@ AC_DEFUN([gl_MOUNTLIST],
 # Prerequisites of lib/mountlist.c not done by jm_LIST_MOUNTED_FILESYSTEMS.
 AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA],
 [
-  AC_REQUIRE([AC_HEADER_STDC])
   dnl Note jm_LIST_MOUNTED_FILESYSTEMS checks for mntent.h, not sys/mntent.h.
-  AC_CHECK_HEADERS_ONCE(fcntl.h string.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
   AC_CHECK_HEADERS(sys/mntent.h)
   jm_FSTYPENAME
 ])