summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-25 22:23:38 +0000
committerimp <imp@FreeBSD.org>1999-04-25 22:23:38 +0000
commit8b33b875effcc83c5a2de2bd72e2c70b04652373 (patch)
treedef5aac6eb0418a20ccd70112f0e053b4d4f221e /libexec/bootpd
parent35d2979599d0ad7a7aaf62f3d59fc099119b76d3 (diff)
downloadFreeBSD-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')
-rw-r--r--libexec/bootpd/bootpd.c5
-rw-r--r--libexec/bootpd/bootpgw/bootpgw.c3
-rw-r--r--libexec/bootpd/tools/bootpef/bootpef.c5
-rw-r--r--libexec/bootpd/tools/bootptest/bootptest.c4
4 files changed, 10 insertions, 7 deletions
diff --git a/libexec/bootpd/bootpd.c b/libexec/bootpd/bootpd.c
index b4cace6..ed0dee3 100644
--- a/libexec/bootpd/bootpd.c
+++ b/libexec/bootpd/bootpd.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: bootpd.c,v 1.10 1998/12/13 21:02:28 eivind Exp $
+ $Id: bootpd.c,v 1.11 1999/04/07 08:27:39 brian Exp $
************************************************************************/
@@ -183,7 +183,7 @@ char *bootpd_dump = DUMPTAB_FILE;
* main server loop is started.
*/
-void
+int
main(argc, argv)
int argc;
char **argv;
@@ -573,6 +573,7 @@ main(argc, argv)
break;
}
}
+ return 0;
}
diff --git a/libexec/bootpd/bootpgw/bootpgw.c b/libexec/bootpd/bootpgw/bootpgw.c
index c289352..b552eb3 100644
--- a/libexec/bootpd/bootpgw/bootpgw.c
+++ b/libexec/bootpd/bootpgw/bootpgw.c
@@ -153,7 +153,7 @@ char *hostname;
* main server loop is started.
*/
-void
+int
main(argc, argv)
int argc;
char **argv;
@@ -494,6 +494,7 @@ main(argc, argv)
break;
}
}
+ return 0;
}
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);
}
diff --git a/libexec/bootpd/tools/bootptest/bootptest.c b/libexec/bootpd/tools/bootptest/bootptest.c
index 92a3837..d319426 100644
--- a/libexec/bootpd/tools/bootptest/bootptest.c
+++ b/libexec/bootpd/tools/bootptest/bootptest.c
@@ -31,7 +31,7 @@
* 09/28/93 Released version 1.0
* 09/93 Original developed by Gordon W. Ross <gwr@mc.com>
*
- * $Id: bootptest.c,v 1.4 1997/02/22 14:21:20 peter Exp $
+ * $Id: bootptest.c,v 1.5 1997/12/24 18:56:03 imp Exp $
*/
char *usage = "bootptest [-h] server-name [vendor-data-template-file]";
@@ -127,7 +127,7 @@ extern void bootp_print();
* the receiver loop is started. Die when interrupted.
*/
-void
+int
main(argc, argv)
int argc;
char **argv;
OpenPOWER on IntegriCloud