diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-12-01 16:24:49 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-12-01 16:24:49 +0000 |
commit | 276548068993fa8b6485a7baf422e381c1b1a530 (patch) | |
tree | 83d9a692e7d431ba054a65357bc22aa3055eb24e | |
parent | c4dc01d7559ca81d3a56718f4edfd70cfb1ac945 (diff) |
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.c | 9 |
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"); |