Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/telnetd Only include the headers we use and remove u...



details:   https://anonhg.NetBSD.org/src/rev/c4c92dd57d78
branches:  trunk
changeset: 782507:c4c92dd57d78
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 04 21:57:40 2012 +0000

description:
Only include the headers we use and remove useless variable.

diffstat:

 libexec/telnetd/sys_term.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r a3d175037870 -r c4c92dd57d78 libexec/telnetd/sys_term.c
--- a/libexec/telnetd/sys_term.c        Sun Nov 04 21:35:45 2012 +0000
+++ b/libexec/telnetd/sys_term.c        Sun Nov 04 21:57:40 2012 +0000
@@ -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 @@
 #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))



Home | Main Index | Thread Index | Old Index