Module Name:    src
Committed By:   christos
Date:           Sun Nov  4 13:08:57 UTC 2012

Modified Files:
        src/lib/libutil/compat: compat_loginx.c util.h

Log Message:
don't include things you don't need


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libutil/compat/compat_loginx.c \
    src/lib/libutil/compat/util.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libutil/compat/compat_loginx.c
diff -u src/lib/libutil/compat/compat_loginx.c:1.2 src/lib/libutil/compat/compat_loginx.c:1.3
--- src/lib/libutil/compat/compat_loginx.c:1.2	Sat Jan 10 21:57:18 2009
+++ src/lib/libutil/compat/compat_loginx.c	Sun Nov  4 08:08:56 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_loginx.c,v 1.2 2009/01/11 02:57:18 christos Exp $	*/
+/*	$NetBSD: compat_loginx.c,v 1.3 2012/11/04 13:08:56 christos Exp $	*/
 
 /*
  * Copyright (c) 1988, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_loginx.c,v 1.2 2009/01/11 02:57:18 christos Exp $");
+__RCSID("$NetBSD: compat_loginx.c,v 1.3 2012/11/04 13:08:56 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -44,12 +44,10 @@ __RCSID("$NetBSD: compat_loginx.c,v 1.2 
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <util.h>
-#include <compat/util.h>
-#include <utmp.h>
-#include <compat/include/utmp.h>
 #include <utmpx.h>
 #include <compat/include/utmpx.h>
+#include <util.h>
+#include <compat/util.h>
 
 __warn_references(loginx,
     "warning: reference to compatibility loginx(); include <util.h> to generate correct reference")
Index: src/lib/libutil/compat/util.h
diff -u src/lib/libutil/compat/util.h:1.2 src/lib/libutil/compat/util.h:1.3
--- src/lib/libutil/compat/util.h:1.2	Sat Jan 10 21:57:18 2009
+++ src/lib/libutil/compat/util.h	Sun Nov  4 08:08:57 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: util.h,v 1.2 2009/01/11 02:57:18 christos Exp $	*/
+/*	$NetBSD: util.h,v 1.3 2012/11/04 13:08:57 christos Exp $	*/
 
 /*-
  * Copyright (c) 1995
@@ -34,10 +34,15 @@
 
 #include <sys/cdefs.h>
 #include <sys/types.h>
-#include <compat/include/pwd.h>
-#include <compat/include/utmp.h>
-#include <compat/include/utmpx.h>
-#include <machine/ansi.h>
+#include <sys/inttypes.h>
+#include <sys/ansi.h>
+
+struct utmp50;
+struct utmpx50;
+struct passwd50;
+struct utmp;
+struct utmpx;
+struct passwd;
 
 void		login(const struct utmp50 *);
 void		loginx(const struct utmpx50 *);

Reply via email to