changeset 4659:1b52171ed2f7

Remove K&R cruft.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 09 Sep 2003 20:06:56 +0000
parents 6ef2ff78cbad
children fb861a8544e6
files lib/long-options.c m4/long-options.m4
diffstat 2 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lib/long-options.c	Tue Sep 09 19:37:26 2003 +0000
+++ b/lib/long-options.c	Tue Sep 09 20:06:56 2003 +0000
@@ -1,5 +1,7 @@
 /* Utility to accept --help and --version options as unobtrusively as possible.
-   Copyright (C) 1993-1994, 1998-1999, 2000, 2002 Free Software Foundation, Inc.
+
+   Copyright (C) 1993, 1994, 1998, 1999, 2000, 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
@@ -21,13 +23,12 @@
 # include <config.h>
 #endif
 
+#include "long-options.h"
+
 #include <stdio.h>
 #include <getopt.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
-#include "long-options.h"
 #include "version-etc.h"
 
 static struct option const long_options[] =
--- a/m4/long-options.m4	Tue Sep 09 19:37:26 2003 +0000
+++ b/m4/long-options.m4	Tue Sep 09 20:06:56 2003 +0000
@@ -1,5 +1,5 @@
-# long-options.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# long-options.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,5 @@
 AC_DEFUN([gl_LONG_OPTIONS],
 [
   dnl Prerequisites of lib/long-options.c.
-  AC_CHECK_HEADERS_ONCE(stdlib.h)
+  :
 ])