diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2001-12-14 16:22:41 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2001-12-14 16:22:41 +0000 |
commit | 69393d06460cbe9077cdf322f96443c3807a3209 (patch) | |
tree | 84cf1d7641eabc795ab8cc666fc99465674f6005 /usr.sbin/dev_mkdb | |
parent | 6257f961225791ca87e9c7f2716b0cfb8d4c1d0e (diff) | |
download | src-69393d06460cbe9077cdf322f96443c3807a3209.tar.gz src-69393d06460cbe9077cdf322f96443c3807a3209.zip |
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.
Notes
Notes:
svn path=/head/; revision=87893
Diffstat (limited to 'usr.sbin/dev_mkdb')
-rw-r--r-- | usr.sbin/dev_mkdb/dev_mkdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.c b/usr.sbin/dev_mkdb/dev_mkdb.c index d79674ee7bb6..59676541f99e 100644 --- a/usr.sbin/dev_mkdb/dev_mkdb.c +++ b/usr.sbin/dev_mkdb/dev_mkdb.c @@ -61,6 +61,7 @@ static const char rcsid[] = #include <unistd.h> static void usage __P((void)); +int main __P((int argc, char *argv[])); int main(argc, argv) |