summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-09-14 03:39:26 +0000
committerJim Meyering <jim@meyering.net>1997-09-14 03:39:26 +0000
commitb208989a7502c770c33269a851da3a89fe3974f3 (patch)
tree254314fe20b306a0d4b59e8bf7eb68f70d5ea792 /src/rm.c
parent849a724b76cf50439e64835ec006f4080fa3da97 (diff)
downloadcoreutils-b208989a7502c770c33269a851da3a89fe3974f3.tar.xz
(PARAMS): Define.
(rm): Guard prototype in forward dcl with PARAMS.
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/rm.c b/src/rm.c
index 8302ae4d2..125d25165 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -30,6 +30,14 @@
#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;