]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(PARAMS): Define.
authorJim Meyering <jim@meyering.net>
Sun, 14 Sep 1997 03:39:26 +0000 (03:39 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 14 Sep 1997 03:39:26 +0000 (03:39 +0000)
(rm): Guard prototype in forward dcl with PARAMS.

src/rm.c

index 8302ae4d223377e36ddca32cdc10a77dc0205ef2..125d25165bcee388de455acf4dbacc069896b981 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
 #include "obstack.h"
 #include "oa-hash.h"
 
+#ifndef PARAMS
+# if defined (__GNUC__) || __STDC__
+#  define PARAMS(args) args
+# else
+#  define PARAMS(args) ()
+# endif
+#endif
+
 #define obstack_chunk_alloc malloc
 #define obstack_chunk_free free
 
@@ -105,7 +113,9 @@ char *xmalloc ();
 char *xrealloc ();
 int yesno ();
 
-static enum RM_status rm (struct File_spec *fs, int user_specified_name);
+/* Forward dcl for recursively called function.  */
+static enum RM_status rm PARAMS ((struct File_spec *fs,
+                                 int user_specified_name));
 
 /* Name this program was run with.  */
 char *program_name;