maint: remove useless inclusions of "alloca.h"
authorJim Meyering <meyering@redhat.com>
Tue, 5 Jan 2010 14:14:35 +0000 (15:14 +0100)
committerIan Beckwith <ianb@erislabs.net>
Sun, 10 Jan 2010 00:21:42 +0000 (00:21 +0000)
* 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.
(cherry picked from commit 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c)

ChangeLog
lib/getloadavg.c
lib/readtokens.c
lib/same.c
modules/getloadavg
modules/readtokens
modules/same

index 1313708..ca16e48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 4a9ca7f..c6d782b 100644 (file)
 # 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
index e29f20e..8172eb1 100644 (file)
@@ -31,8 +31,6 @@
 #include <string.h>
 #include <stdbool.h>
 
-#include "xalloc.h"
-
 #if USE_UNLOCKED_IO
 # include "unlocked-io.h"
 #endif
index 639d6c5..1abc55c 100644 (file)
@@ -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))
index 2fbeb40..7865b8f 100644 (file)
@@ -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])
index 9453de9..d593b8f 100644 (file)
@@ -7,7 +7,6 @@ lib/readtokens.c
 m4/readtokens.m4
 
 Depends-on:
-xalloc
 stdbool
 
 configure.ac:
index a6fc64f..7a9252a 100644 (file)
@@ -8,7 +8,6 @@ lib/same.c
 m4/same.m4
 
 Depends-on:
-xalloc
 error
 dirname
 same-inode