From: Paul Eggert <eggert@cs.ucla.edu>
Date: Tue, 9 Sep 2003 20:06:56 +0000 (+0000)
Subject: Remove K&R cruft.
X-Git-Tag: cvs-readonly~4527
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7cb20adffee32228803eaab0e8297e96a39e9af7;p=gnulib.git

Remove K&R cruft.
---

diff --git a/lib/long-options.c b/lib/long-options.c
index 43df8594e3..58bc93c1d1 100644
--- a/lib/long-options.c
+++ b/lib/long-options.c
@@ -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[] =
diff --git a/m4/long-options.m4 b/m4/long-options.m4
index 005a8f8a07..4741954297 100644
--- a/m4/long-options.m4
+++ b/m4/long-options.m4
@@ -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 @@ dnl the same distribution terms as the rest of that program.
 AC_DEFUN([gl_LONG_OPTIONS],
 [
   dnl Prerequisites of lib/long-options.c.
-  AC_CHECK_HEADERS_ONCE(stdlib.h)
+  :
 ])