From: nekral-guest Date: Sat, 5 Jan 2008 13:23:22 +0000 (+0000) Subject: Include "prototypes.h" to make sure the exported prototypes are X-Git-Tag: 4.1.1~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96bca84ca4df798b74ea0c19478ce807fb8bce57;p=thirdparty%2Fshadow.git Include "prototypes.h" to make sure the exported prototypes are the ones used for the definition of functions. --- diff --git a/ChangeLog b/ChangeLog index 45e6bff40..e90decc6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ putgrent prototype. * lib/prototypes.h: "shadowio.h" was included for the definition of the spwd structure. Replace this include by + * libmisc/xmalloc.c, libmisc/utmp.c, libmisc/strtoday.c, + libmisc/pwd_init.c, libmisc/tz.c, lib/port.c, lib/fputsx.c: + Include "prototypes.h" to make sure the exported prototypes are + the ones used for the definition of functions. 2008-01-01 Nicolas François diff --git a/lib/fputsx.c b/lib/fputsx.c index 565fb9871..fb0fe5c56 100644 --- a/lib/fputsx.c +++ b/lib/fputsx.c @@ -31,6 +31,7 @@ #include #include "defines.h" +#include "prototypes.h" #ident "$Id$" diff --git a/lib/port.c b/lib/port.c index 814b10c14..68939bb18 100644 --- a/lib/port.c +++ b/lib/port.c @@ -35,6 +35,7 @@ #include #include #include "defines.h" +#include "prototypes.h" #include "port.h" extern int errno; diff --git a/libmisc/pwd_init.c b/libmisc/pwd_init.c index 7db1e1f14..6572e60bb 100644 --- a/libmisc/pwd_init.c +++ b/libmisc/pwd_init.c @@ -10,6 +10,9 @@ #ifdef HAVE_SYS_RESOURCE_H #include #endif + +#include "prototypes.h" + /* * pwd_init - ignore signals, and set resource limits to safe * values. Call this before modifying password files, so that diff --git a/libmisc/strtoday.c b/libmisc/strtoday.c index 3fa6dc99e..33bbacfcc 100644 --- a/libmisc/strtoday.c +++ b/libmisc/strtoday.c @@ -36,6 +36,8 @@ #ident "$Id$" #include "defines.h" +#include "prototypes.h" + #ifndef USE_GETDATE #define USE_GETDATE 1 #endif diff --git a/libmisc/tz.c b/libmisc/tz.c index 6ea0fcebd..261946f91 100644 --- a/libmisc/tz.c +++ b/libmisc/tz.c @@ -34,6 +34,7 @@ #include #include #include "defines.h" +#include "prototypes.h" #include "getdef.h" /* * tz - return local timezone name diff --git a/libmisc/utmp.c b/libmisc/utmp.c index 8f52bb984..7ddf24838 100644 --- a/libmisc/utmp.c +++ b/libmisc/utmp.c @@ -30,6 +30,7 @@ #include #include "defines.h" +#include "prototypes.h" #include diff --git a/libmisc/xmalloc.c b/libmisc/xmalloc.c index 77260908b..5be4fdcbf 100644 --- a/libmisc/xmalloc.c +++ b/libmisc/xmalloc.c @@ -13,6 +13,8 @@ #include #include "defines.h" +#include "prototypes.h" + char *xmalloc (size_t size) { char *ptr;