diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-11-29 14:13:32 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2012-11-29 14:13:32 +0000 |
commit | 1fbc6bab0b80d5ae3c7d0d7a54f37adf34c7258c (patch) | |
tree | 3defa82640ea3edd120e418da2fc4980ffe15bc2 /sbin | |
parent | 118d04181b3b740d08e7786f1252801a81ee270d (diff) |
Nobody looks at the result of fork_privchld(), so make it return
void and not int/pid_t.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index fbd5bc16032..335833b125e 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.182 2012/11/27 15:51:48 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.183 2012/11/29 14:13:31 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -92,7 +92,7 @@ int check_option(struct client_lease *l, int option); int ipv4addrs(char * buf); int res_hnok(const char *dn); char *option_as_string(unsigned int code, unsigned char *data, int len); -pid_t fork_privchld(int, int); +void fork_privchld(int, int); void get_ifname(char *, char *); void new_resolv_conf(char *, char *, char *); struct client_lease *apply_defaults(struct client_lease *); @@ -1690,7 +1690,7 @@ toobig: return "<error>"; } -int +void fork_privchld(int fd, int fd2) { struct pollfd pfd[1]; @@ -1705,7 +1705,7 @@ fork_privchld(int fd, int fd2) case 0: break; default: - return (0); + return; } if (chdir("/") == -1) |