# HG changeset patch # User Paul Eggert # Date 1063165654 0 # Node ID 6505d2a987d6fe2dc9a26a9eccf689efdae9c51b # Parent 11c0cb23466396fd0f998ba0541c860643a65557 Remove K&R cruft. diff --git a/lib/posixtm.c b/lib/posixtm.c --- a/lib/posixtm.c +++ b/lib/posixtm.c @@ -25,15 +25,9 @@ #include #include -#if HAVE_STDLIB_H -# include -#endif +#include #include -#if HAVE_STRING_H -# include -#else -# include -#endif +#include #ifdef TM_IN_SYS_TIME # include @@ -294,7 +288,7 @@ # define MAX_BUFF_LEN 1024 int -main () +main (void) { char buff[MAX_BUFF_LEN + 1]; diff --git a/lib/posixver.c b/lib/posixver.c --- a/lib/posixver.c +++ b/lib/posixver.c @@ -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 @@ -23,11 +23,7 @@ #endif #include - #include -#if !HAVE_DECL_GETENV && !defined getenv -char *getenv (); -#endif #if HAVE_UNISTD_H # include diff --git a/m4/posixtm.m4 b/m4/posixtm.m4 --- a/m4/posixtm.m4 +++ b/m4/posixtm.m4 @@ -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 @@ [ dnl Prerequisites of lib/posixtm.c. AC_STRUCT_TM - AC_CHECK_HEADERS_ONCE(stdlib.h string.h) ]) diff --git a/m4/posixver.m4 b/m4/posixver.m4 --- a/m4/posixver.m4 +++ b/m4/posixver.m4 @@ -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 @@ AC_DEFUN([gl_POSIXVER], [ AC_CHECK_HEADERS_ONCE(unistd.h) - AC_CHECK_DECLS_ONCE(getenv) ])