diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2023-04-18 18:21:15 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2023-04-18 18:21:15 +0000 |
| commit | 8b356c888167dfc5f5783679d373555053982f02 (patch) | |
| tree | 300ff02be4256d808aaac0183e6e08fe30e58955 /libexec/bootpd/bootpd.c | |
| parent | f6fd5356b3fc71467b9e110d683241f25424f97c (diff) | |
Diffstat (limited to 'libexec/bootpd/bootpd.c')
| -rw-r--r-- | libexec/bootpd/bootpd.c | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/libexec/bootpd/bootpd.c b/libexec/bootpd/bootpd.c index 42f1cd8c5912..938444127f45 100644 --- a/libexec/bootpd/bootpd.c +++ b/libexec/bootpd/bootpd.c @@ -170,9 +170,7 @@ char *bootpd_dump = DUMPTAB_FILE; */ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { struct timeval *timeout; struct bootp *bp; @@ -593,8 +591,7 @@ usage() /* Signal catchers */ PRIVATE void -catcher(sig) - int sig; +catcher(int sig) { if (sig == SIGHUP) do_readtab = 1; @@ -620,7 +617,7 @@ catcher(sig) * forward the request there.) */ PRIVATE void -handle_request() +handle_request(void) { struct bootp *bp = (struct bootp *) pktbuf; struct host *hp = NULL; @@ -998,7 +995,7 @@ null_file_name: * Process BOOTREPLY packet. */ PRIVATE void -handle_reply() +handle_reply(void) { if (debug) { report(LOG_INFO, "processing boot reply"); @@ -1013,9 +1010,7 @@ handle_reply() * not the originator of this reply packet. */ PRIVATE void -sendreply(forward, dst_override) - int forward; - int32 dst_override; +sendreply(int forward, int32 dst_override) { struct bootp *bp = (struct bootp *) pktbuf; struct in_addr dst; @@ -1131,9 +1126,7 @@ sendreply(forward, dst_override) */ PRIVATE int -chk_access(path, filesize) - char *path; - int32 *filesize; +chk_access(char *path, int32 *filesize) { struct stat st; @@ -1161,9 +1154,7 @@ chk_access(path, filesize) */ PRIVATE void -dovend_cmu(bp, hp) - struct bootp *bp; - struct host *hp; +dovend_cmu(struct bootp *bp, struct host *hp) { struct cmu_vend *vendp; struct in_addr_list *taddr; @@ -1231,10 +1222,7 @@ dovend_cmu(bp, hp) return; \ } while (0) PRIVATE void -dovend_rfc1048(bp, hp, bootsize) - struct bootp *bp; - struct host *hp; - int32 bootsize; +dovend_rfc1048(struct bootp *bp, struct host *hp, int32 bootsize) { int bytesleft, len; byte *vp; |
