Mercurial > hg > octave-lojdl > gnulib-hg
changeset 4671:6505d2a987d6
Remove K&R cruft.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 10 Sep 2003 03:47:34 +0000 |
parents | 11c0cb234663 |
children | 55a4d3c67ca7 |
files | lib/posixtm.c lib/posixver.c m4/posixtm.m4 m4/posixver.m4 |
diffstat | 4 files changed, 8 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ # define MAX_BUFF_LEN 1024 int -main () +main (void) { char buff[MAX_BUFF_LEN + 1];
--- 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 <limits.h> - #include <stdlib.h> -#if !HAVE_DECL_GETENV && !defined getenv -char *getenv (); -#endif #if HAVE_UNISTD_H # include <unistd.h>
--- 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) ])
--- 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) ])