Browse Source

Remove unused variable which was leaking memory, and while here remove 2 other

variables that were also never used
OK otto@
OPENBSD_6_1
mestre 7 years ago
parent
commit
39fc6c9a98
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      src/usr.sbin/ntpd/ntpd.c

+ 1
- 8
src/usr.sbin/ntpd/ntpd.c View File

@ -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");


Loading…
Cancel
Save