summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2016-12-01 16:24:48 +0000
committermestre <mestre@openbsd.org>2016-12-01 16:24:48 +0000
commitc29ada625f510873dcb61a453393c4a1a8398688 (patch)
treeaba1423b430d735326d0abc3ae5d74a8f2fc38b2
parentgarbage collect PSK remnants (diff)
downloadwireguard-openbsd-c29ada625f510873dcb61a453393c4a1a8398688.tar.xz
wireguard-openbsd-c29ada625f510873dcb61a453393c4a1a8398688.zip
Remove unused variable which was leaking memory, and while here remove 2 other
variables that were also never used OK otto@
-rw-r--r--usr.sbin/ntpd/ntpd.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 216d49f6ef3..59f12ab4603 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.c,v 1.111 2016/09/26 17:17:01 rzalamena Exp $ */
+/* $OpenBSD: ntpd.c,v 1.112 2016/12/01 16:24:48 mestre Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -118,9 +118,6 @@ main(int argc, char *argv[])
u_int pfd_elms = 0, new_cnt;
struct constraint *cstr;
struct passwd *pw;
- const char *pw_dir;
- uid_t pw_uid;
- gid_t pw_gid;
void *newp;
int argc0 = argc;
char **argv0 = argv;
@@ -206,10 +203,6 @@ main(int argc, char *argv[])
fatalx("%s: process '%s' failed", __func__, pname);
}
- pw_dir = strdup(pw->pw_dir);
- pw_uid = pw->pw_uid;
- pw_gid = pw->pw_gid;
-
if (setpriority(PRIO_PROCESS, 0, -20) == -1)
warn("can't set priority");