From 96bca84ca4df798b74ea0c19478ce807fb8bce57 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 5 Jan 2008 13:23:22 +0000 Subject: [PATCH] Include "prototypes.h" to make sure the exported prototypes are the ones used for the definition of functions. --- ChangeLog | 4 ++++ lib/fputsx.c | 1 + lib/port.c | 1 + libmisc/pwd_init.c | 3 +++ libmisc/strtoday.c | 2 ++ libmisc/tz.c | 1 + libmisc/utmp.c | 1 + libmisc/xmalloc.c | 2 ++ 8 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 45e6bff4..e90decc6 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 565fb987..fb0fe5c5 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 814b10c1..68939bb1 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 7db1e1f1..6572e60b 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 3fa6dc99..33bbacfc 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 6ea0fceb..261946f9 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 8f52bb98..7ddf2483 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 77260908..5be4fdcb 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;