diff options
author | imp <imp@FreeBSD.org> | 1999-04-25 22:23:38 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-04-25 22:23:38 +0000 |
commit | 8b33b875effcc83c5a2de2bd72e2c70b04652373 (patch) | |
tree | def5aac6eb0418a20ccd70112f0e053b4d4f221e /libexec/bootpd/tools/bootpef/bootpef.c | |
parent | 35d2979599d0ad7a7aaf62f3d59fc099119b76d3 (diff) | |
download | FreeBSD-src-8b33b875effcc83c5a2de2bd72e2c70b04652373.zip FreeBSD-src-8b33b875effcc83c5a2de2bd72e2c70b04652373.tar.gz |
More egcs warning fixes:
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
Reviewed by: obrien and chuckr
Diffstat (limited to 'libexec/bootpd/tools/bootpef/bootpef.c')
-rw-r--r-- | libexec/bootpd/tools/bootpef/bootpef.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/bootpd/tools/bootpef/bootpef.c b/libexec/bootpd/tools/bootpef/bootpef.c index c7e9276..c459ac8 100644 --- a/libexec/bootpd/tools/bootpef/bootpef.c +++ b/libexec/bootpd/tools/bootpef/bootpef.c @@ -19,7 +19,7 @@ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - $Id$ + $Id: bootpef.c,v 1.4 1997/02/22 14:21:18 peter Exp $ ************************************************************************/ @@ -136,7 +136,7 @@ usage() * Initialization such as command-line processing is done and then the * main server loop is started. */ -void +int main(argc, argv) int argc; char **argv; @@ -272,6 +272,7 @@ main(argc, argv) mktagfile(hp); hp = (struct host *) hash_NextEntry(nmhashtable); } + return (0); } |