summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2001-12-14 16:22:41 +0000
committerluigi <luigi@FreeBSD.org>2001-12-14 16:22:41 +0000
commit6f50cc58769ac15229cbe3dcb91230749f51df18 (patch)
tree84cf1d7641eabc795ab8cc666fc99465674f6005 /bin
parentc068c4e4643fbedb183aec086cf1509f8640e8db (diff)
downloadFreeBSD-src-6f50cc58769ac15229cbe3dcb91230749f51df18.zip
FreeBSD-src-6f50cc58769ac15229cbe3dcb91230749f51df18.tar.gz
Add prototypes for main() so that these programs compile with -Werror
(which somehow now seems to be the default for compiling -current). This error popped up while doing a PicoBSD cross-compile on a 4.3-ish system, it may well be that there are other apps which have similar problems, but I did not spot them as they are not included in my picobsd config. Whether adding prototypes for main() is the correct solution or not I have no idea, a request to -current on the matter went basically unanswered. Those who have better ideas are welcome to back this out and replace it with the correct fix.
Diffstat (limited to 'bin')
-rw-r--r--bin/rm/rm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index 4a50a64..997d41a 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -69,6 +69,7 @@ void rm_file __P((char **));
void rm_overwrite __P((char *, struct stat *));
void rm_tree __P((char **));
void usage __P((void));
+int main __P((int argc, char *argv[]));
/*
* rm --
OpenPOWER on IntegriCloud