summaryrefslogtreecommitdiff
path: root/locate/locate.c
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2009-03-10 23:51:17 +0000
committerJames Youngman <jay@gnu.org>2009-04-12 11:26:52 +0100
commit9c94cc62e37731bb8091f0b8cf73e7b28b8a1443 (patch)
tree1648a8bfe5882aafe36a31258cf1aca7638f6d48 /locate/locate.c
parentd53dadcf6b34f815304b96b71f2c4679b1a95a0e (diff)
downloadfindutils-9c94cc62e37731bb8091f0b8cf73e7b28b8a1443.tar.gz
Remove unnecessary include guards.
Remove "lib/wait.h", since gnulib provides <sys/wait.h>. * lib/Makefile.am (EXTRA_DIST): Remove wait.h, since gnulib provides it. * lib/wait.h: Not needed. * find/pred.c: Include <sys/wait.h> instead of "wait.h". * lib/waitpid.c: Likewise. * xargs/xargs.c: Likewise. Remove unnecessary include guards. * lib/dircallback.c: gnulib provides <locale.h>, so no need for include guards. * locate/locate.c: Likewise. * lib/listfile.c: Likewise. * lib/savedirinfo.c: Likewise with <sys/stat.h> * find/defs.h: gnulib provides <inttypes.h>, so no need for include guards. * lib/nextelem.c: Likewise with <string.h> and <stdlib.h>. * locate/bigram.c: Likewise. * locate/frcode.c: Likewise. * lib/buildcmd.c: Likewise with <locale.h> and <wchar.h> * xargs/xargs.c: Likewise with <locale.h>, <wchar.h> and <stdlib.h> * import-gnulib.config (modules): Import the mbrtowc and whchar modules. * lib/qmark.c (multibyte_qmark_chars): Don't surround with HAVE_MBRTOWC, since we now have a replacement for mbrtowc. Likewise, don't protect inclusion of <string.h> with HAVE_STRING_H. Likewise with <wchar.h>. (multibyte_qmark_chars): Rename to qmark_chars. (qmark_chars): Remove old version (since it is replaced by the function that used to be multibyte_qmark_chars). * lib/printquoted.c: Don't include <wchar.h>, we don't need it. Signed-off-by: James Youngman <jay@gnu.org>
Diffstat (limited to 'locate/locate.c')
-rw-r--r--locate/locate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/locate/locate.c b/locate/locate.c
index a8d980f4..c01f6c29 100644
--- a/locate/locate.c
+++ b/locate/locate.c
@@ -91,10 +91,8 @@
#endif
#include <errno.h>
-
-#ifdef HAVE_LOCALE_H
#include <locale.h>
-#endif
+
#if ENABLE_NLS
# include <libintl.h>