Module Name: src
Committed By: christos
Date: Sun Nov 4 21:57:40 UTC 2012
Modified Files:
src/libexec/telnetd: sys_term.c
Log Message:
Only include the headers we use and remove useless variable.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/libexec/telnetd/sys_term.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/telnetd/sys_term.c
diff -u src/libexec/telnetd/sys_term.c:1.45 src/libexec/telnetd/sys_term.c:1.46
--- src/libexec/telnetd/sys_term.c:1.45 Mon Jan 9 11:36:48 2012
+++ src/libexec/telnetd/sys_term.c Sun Nov 4 16:57:40 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_term.c,v 1.45 2012/01/09 16:36:48 christos Exp $ */
+/* $NetBSD: sys_term.c,v 1.46 2012/11/04 21:57:40 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sys_term.c 8.4+1 (Berkeley) 5/30/95";
#else
-__RCSID("$NetBSD: sys_term.c,v 1.45 2012/01/09 16:36:48 christos Exp $");
+__RCSID("$NetBSD: sys_term.c,v 1.46 2012/11/04 21:57:40 christos Exp $");
#endif
#endif /* not lint */
@@ -44,8 +44,12 @@ __RCSID("$NetBSD: sys_term.c,v 1.45 2012
#include <util.h>
#include <vis.h>
+#ifdef SUPPORT_UTMP
#include <utmp.h>
-struct utmp wtmp;
+#endif
+#ifdef SUPPORT_UTMPX
+#include <utmpx.h>
+#endif
#define SCPYN(a, b) (void) strncpy(a, b, sizeof(a))
#define SCMPN(a, b) strncmp(a, b, sizeof(a))