* locate/frcode.c: Don't declare xmalloc, include xalloc.h instead.
* locate/code.c: Don't declare program_name, we already included
progname.h.

Signed-off-by: James Youngman <[email protected]>
---
 ChangeLog       |    5 +++++
 locate/code.c   |    3 ---
 locate/frcode.c |    3 ++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9f4a038..7711f12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-04-18  James Youngman  <[email protected]>
 
+       Remove redundant declarations.
+       * locate/frcode.c: Don't declare xmalloc, include xalloc.h instead.
+       * locate/code.c: Don't declare program_name, we already included
+       progname.h.
+
        Remove support for compilers lacking prototypes.
        * find/defs.h: Don't define or use the PARAMS macro.
        * xargs/xargs.c: Likewise.
diff --git a/locate/code.c b/locate/code.c
index daa816a..7d06a66 100644
--- a/locate/code.c
+++ b/locate/code.c
@@ -83,9 +83,6 @@
 #endif
 
 
-/* The name this program was run with.  */
-extern const char *program_name;
-
 /* The 128 most common bigrams in the file list, padded with NULs
    if there are fewer.  */
 static char bigrams[257] = {0};
diff --git a/locate/frcode.c b/locate/frcode.c
index 5996266..54fa8c5 100644
--- a/locate/frcode.c
+++ b/locate/frcode.c
@@ -102,9 +102,10 @@
 #include "error.h"
 #include "closeout.h"
 #include "findutils-version.h"
+#include "xalloc.h"
 #include "progname.h"
 
-char *xmalloc (size_t);
+
 
 /* Write out a 16-bit int, high byte first (network byte order).
  * Return true iff all went well.
-- 
1.7.0



Reply via email to