summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-01-19 21:23:19 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-01-19 21:23:19 +0000
commitb126a8bdb9fcd2aa775eed78f85660b26fc4e382 (patch)
tree0d3beb524b7f72838d7e3f2e1528c5a35df7c4d3
parent950425dd8d7fc43937972748d65981bb08778616 (diff)
Since there is no more exec()'ing, there is no need to
save a copy of the original argv.
-rw-r--r--sbin/dhclient/dhclient.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 16277b82200..4904c82661f 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.617 2019/01/19 21:07:13 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.618 2019/01/19 21:23:18 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -438,8 +438,6 @@ rtm_dispatch(struct interface_info *ifi, struct rt_msghdr *rtm)
write_resolv_conf();
}
-char **saved_argv;
-
int
main(int argc, char *argv[])
{
@@ -455,8 +453,6 @@ main(int argc, char *argv[])
int rtfilter, ioctlfd, routefd;
int ch;
- saved_argv = argv;
-
if (isatty(STDERR_FILENO) != 0)
log_init(1, LOG_DEBUG); /* log to stderr until daemonized */
else