diff options
author | Jim Meyering <meyering@redhat.com> | 2010-01-05 15:14:35 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-05 15:36:03 +0100 |
commit | 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c (patch) | |
tree | 14f6ca7cfe23c24cd660a30b16af38110ae432dd | |
parent | 0c2fded89d2ebb3395d176001182ef710d68d430 (diff) | |
download | gnulib-0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.tar.gz |
maint: remove useless inclusions of "alloca.h"
* lib/getloadavg.c: Remove useless inclusion of "alloca.h".
* lib/readtokens.c: Likewise.
* lib/same.c: Likewise.
* modules/getloadavg (Depends-on): Remove xalloc.
* modules/readtokens: Likewise.
* modules/same: Likewise.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | lib/getloadavg.c | 1 | ||||
-rw-r--r-- | lib/readtokens.c | 2 | ||||
-rw-r--r-- | lib/same.c | 1 | ||||
-rw-r--r-- | modules/getloadavg | 9 | ||||
-rw-r--r-- | modules/readtokens | 1 | ||||
-rw-r--r-- | modules/same | 1 |
7 files changed, 12 insertions, 11 deletions
@@ -1,5 +1,13 @@ 2010-01-05 Jim Meyering <meyering@redhat.com> + maint: remove useless inclusions of "alloca.h" + * lib/getloadavg.c: Remove useless inclusion of "alloca.h". + * lib/readtokens.c: Likewise. + * lib/same.c: Likewise. + * modules/getloadavg (Depends-on): Remove alloca. + * modules/readtokens: Likewise. + * modules/same: Likewise. + maint.mk: include 4 more function names in alloca.h-checking regexp * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete regexp. Before, we would give a false-positive (saying alloca.h diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 4a9ca7f795..c6d782b4e2 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -111,7 +111,6 @@ # include "c-strtod.h" # include "cloexec.h" # include "intprops.h" -# include "xalloc.h" /* The existing Emacs configuration files define a macro called LOAD_AVE_CVT, which accepts a value of type LOAD_AVE_TYPE, and diff --git a/lib/readtokens.c b/lib/readtokens.c index e29f20e69a..8172eb1f15 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -31,8 +31,6 @@ #include <string.h> #include <stdbool.h> -#include "xalloc.h" - #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif diff --git a/lib/same.c b/lib/same.c index 639d6c52ab..1abc55c880 100644 --- a/lib/same.c +++ b/lib/same.c @@ -39,7 +39,6 @@ #include "dirname.h" #include "error.h" #include "same-inode.h" -#include "xalloc.h" #ifndef MIN # define MIN(a, b) ((a) < (b) ? (a) : (b)) diff --git a/modules/getloadavg b/modules/getloadavg index 2fbeb40846..7865b8f048 100644 --- a/modules/getloadavg +++ b/modules/getloadavg @@ -6,14 +6,13 @@ lib/getloadavg.c m4/getloadavg.m4 Depends-on: -stdlib -extensions -cloexec -xalloc c-strtod +cloexec +extensions +fcntl-safer intprops stdbool -fcntl-safer +stdlib configure.ac: gl_GETLOADAVG([$gl_source_base]) diff --git a/modules/readtokens b/modules/readtokens index 9453de9972..d593b8fbf9 100644 --- a/modules/readtokens +++ b/modules/readtokens @@ -7,7 +7,6 @@ lib/readtokens.c m4/readtokens.m4 Depends-on: -xalloc stdbool configure.ac: diff --git a/modules/same b/modules/same index a6fc64f9e9..7a9252a584 100644 --- a/modules/same +++ b/modules/same @@ -8,7 +8,6 @@ lib/same.c m4/same.m4 Depends-on: -xalloc error dirname same-inode |