summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-15 20:56:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-15 20:56:03 +0000
commit7e416a1f490ccc0d6b75d6bb92288a212fea58e9 (patch)
tree6203e639b7c62108000184233629fcb67b178300 /libexec
parent44d853c42c4f6d4d106fba096a13dd8b13c959ff (diff)
localhost variable is not needed; Peter Werner
Diffstat (limited to 'libexec')
-rw-r--r--libexec/login_lchpass/login_lchpass.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libexec/login_lchpass/login_lchpass.c b/libexec/login_lchpass/login_lchpass.c
index 5271385fa77..f2a9f596df4 100644
--- a/libexec/login_lchpass/login_lchpass.c
+++ b/libexec/login_lchpass/login_lchpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_lchpass.c,v 1.10 2002/09/06 18:45:06 deraadt Exp $ */
+/* $OpenBSD: login_lchpass.c,v 1.11 2002/10/15 20:56:02 millert Exp $ */
/*-
* Copyright (c) 1995,1996 Berkeley Software Design, Inc. All rights reserved.
@@ -62,7 +62,6 @@ main(int argc, char *argv[])
{
struct iovec iov[2];
struct passwd *pwd;
- char localhost[MAXHOSTNAMELEN];
char *username = NULL, *salt, *p;
struct rlimit rl;
int c;
@@ -80,9 +79,6 @@ main(int argc, char *argv[])
openlog("login", LOG_ODELAY, LOG_AUTH);
- if (gethostname(localhost, sizeof(localhost)) < 0)
- syslog(LOG_ERR, "couldn't get local hostname: %m");
-
while ((c = getopt(argc, argv, "v:s:")) != -1)
switch (c) {
case 'v':