[Pkg-shadow-commits] r2351 - in upstream/trunk: . lib libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sat Sep 6 15:58:24 UTC 2008


Author: nekral-guest
Date: 2008-09-06 15:58:23 +0000 (Sat, 06 Sep 2008)
New Revision: 2351

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/defines.h
   upstream/trunk/libmisc/xgetXXbyYY.c
   upstream/trunk/libmisc/xgetgrgid.c
   upstream/trunk/libmisc/xgetgrnam.c
   upstream/trunk/libmisc/xgetpwnam.c
   upstream/trunk/libmisc/xgetpwuid.c
   upstream/trunk/libmisc/xgetspnam.c
Log:
	* lib/defines.h: Do not include <config.h>. This complicate
	undefining some configuration macros when the file is included
	multiple times.
	* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
	libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
	Include <config.h> from teh compiled C file, not the included
	getXXbyYY.c.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/ChangeLog	2008-09-06 15:58:23 UTC (rev 2351)
@@ -1,5 +1,15 @@
 2008-09-06  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/defines.h: Do not include <config.h>. This complicate
+	undefining some configuration macros when the file is included
+	multiple times.
+	* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
+	libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
+	Include <config.h> from teh compiled C file, not the included
+	getXXbyYY.c.
+
+2008-09-06  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
 	src/groupmems.c, src/usermod.c, src/groupdel.c, src/chgpasswd.c,
 	src/useradd.c, src/groupmod.c, src/groupadd.c, src/chage.c,

Modified: upstream/trunk/lib/defines.h
===================================================================
--- upstream/trunk/lib/defines.h	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/lib/defines.h	2008-09-06 15:58:23 UTC (rev 2351)
@@ -4,8 +4,6 @@
 #ifndef _DEFINES_H_
 #define _DEFINES_H_
 
-#include <config.h>
-
 #if HAVE_STDBOOL_H
 # include <stdbool.h>
 #else

Modified: upstream/trunk/libmisc/xgetXXbyYY.c
===================================================================
--- upstream/trunk/libmisc/xgetXXbyYY.c	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/libmisc/xgetXXbyYY.c	2008-09-06 15:58:23 UTC (rev 2351)
@@ -52,7 +52,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <config.h>
+#include <errno.h>
 #include "prototypes.h"
 
 #define XFUNCTION_NAME XPREFIX (FUNCTION_NAME)

Modified: upstream/trunk/libmisc/xgetgrgid.c
===================================================================
--- upstream/trunk/libmisc/xgetgrgid.c	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/libmisc/xgetgrgid.c	2008-09-06 15:58:23 UTC (rev 2351)
@@ -49,6 +49,8 @@
  * This file provide wrapper to the getpwnam or getpwnam_r functions.
  */
 
+#include <config.h>
+
 #include "groupio.h"
 
 #define LOOKUP_TYPE	struct group

Modified: upstream/trunk/libmisc/xgetgrnam.c
===================================================================
--- upstream/trunk/libmisc/xgetgrnam.c	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/libmisc/xgetgrnam.c	2008-09-06 15:58:23 UTC (rev 2351)
@@ -49,6 +49,8 @@
  * This file provide wrapper to the getpwnam or getpwnam_r functions.
  */
 
+#include <config.h>
+
 #include "groupio.h"
 
 #define LOOKUP_TYPE	struct group

Modified: upstream/trunk/libmisc/xgetpwnam.c
===================================================================
--- upstream/trunk/libmisc/xgetpwnam.c	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/libmisc/xgetpwnam.c	2008-09-06 15:58:23 UTC (rev 2351)
@@ -49,6 +49,8 @@
  * This file provide wrapper to the getpwnam or getpwnam_r functions.
  */
 
+#include <config.h>
+
 #include "pwio.h"
 
 #define LOOKUP_TYPE	struct passwd

Modified: upstream/trunk/libmisc/xgetpwuid.c
===================================================================
--- upstream/trunk/libmisc/xgetpwuid.c	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/libmisc/xgetpwuid.c	2008-09-06 15:58:23 UTC (rev 2351)
@@ -49,6 +49,8 @@
  * This file provide wrapper to the getpwnam or getpwnam_r functions.
  */
 
+#include <config.h>
+
 #include "pwio.h"
 
 #define LOOKUP_TYPE	struct passwd

Modified: upstream/trunk/libmisc/xgetspnam.c
===================================================================
--- upstream/trunk/libmisc/xgetspnam.c	2008-09-06 14:00:11 UTC (rev 2350)
+++ upstream/trunk/libmisc/xgetspnam.c	2008-09-06 15:58:23 UTC (rev 2351)
@@ -49,6 +49,8 @@
  * This file provide wrapper to the getpwnam or getpwnam_r functions.
  */
 
+#include <config.h>
+
 #include "shadowio.h"
 
 #define LOOKUP_TYPE	struct spwd




More information about the Pkg-shadow-commits mailing list