Commit Graph

8 Commits

Author SHA1 Message Date
Nick Hibma
b0c6cb7fdd Add function name in error message. 2002-06-23 13:19:09 +00:00
Warner Losh
b5d67e30b6 o remove __P
o Use ansi function definitions
o MAXPATHLEN already has the NUL at the end, so no need to add 1 (note that
  MAXNAMLEN doesn't, so the + 1 there is correct).
o remove register.
2002-03-18 07:23:41 +00:00
Luigi Rizzo
69393d0646 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.
2001-12-14 16:22:41 +00:00
Ian Dowse
00a2029a0e Allow the path for /dev and the location of the database file to
be overridden on the command line. This is useful for setting up
chroot/jail environments.

PR:		bin/23509
Submitted by:	Seth Kingsley <sethk@pike.osd.bsdi.com>
MFC after:	1 week
2001-11-18 17:24:28 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Philippe Charnier
9006448ee5 Use err(3) instead of local redefinition. 1997-09-17 06:26:06 +00:00
Warner Losh
6c3f552a31 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
Rodney W. Grimes
dea673e932 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00