From f1586cb4775681810afd8e6626e7842d459f3b85 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 26 Jul 2011 17:23:27 +0200 Subject: stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h --- src/getpass.c | 3 --- src/homedir.c | 4 ---- src/hugehelp.c.cvs | 3 ++- src/main.c | 6 +----- src/mkhelp.pl | 2 -- src/urlglob.c | 4 ---- src/writeout.c | 3 --- src/xattr.c | 1 - 8 files changed, 3 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/getpass.c b/src/getpass.c index 95d257b2f..438fc8d31 100644 --- a/src/getpass.c +++ b/src/getpass.c @@ -28,9 +28,6 @@ #ifndef HAVE_GETPASS_R /* this file is only for systems without getpass_r() */ -#include -#include - #ifdef HAVE_UNISTD_H #include #endif diff --git a/src/homedir.c b/src/homedir.c index 52f69c7ee..d354ef906 100644 --- a/src/homedir.c +++ b/src/homedir.c @@ -22,10 +22,6 @@ #include "setup.h" -#include -#include -#include - #ifdef HAVE_PWD_H #include #endif diff --git a/src/hugehelp.c.cvs b/src/hugehelp.c.cvs index ac9f0ff87..1eb2fa537 100644 --- a/src/hugehelp.c.cvs +++ b/src/hugehelp.c.cvs @@ -1,4 +1,5 @@ -#include +#include "setup.h" +#include "hugehelp.h" void hugehelp(void) { puts ( "This is a silly replacement for the actual file."); diff --git a/src/main.c b/src/main.c index db4405c4a..d5a99f733 100644 --- a/src/main.c +++ b/src/main.c @@ -19,6 +19,7 @@ * KIND, either express or implied. * ***************************************************************************/ + #include "setup.h" #include @@ -27,13 +28,8 @@ ** system headers */ -#include -#include -#include -#include #include #include -#include #if defined(MSDOS) || defined(WIN32) # if defined(HAVE_LIBGEN_H) && defined(HAVE_BASENAME) diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 4d44a9e0f..1d1be601e 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -136,12 +136,10 @@ print < HEAD ; if($c) { print < #include static const unsigned char hugehelpgz[] = { /* This mumbo-jumbo is the huge help text compressed with gzip. diff --git a/src/urlglob.c b/src/urlglob.c index 8dd77e136..371c314f2 100644 --- a/src/urlglob.c +++ b/src/urlglob.c @@ -23,10 +23,6 @@ /* client-local setup.h */ #include "setup.h" -#include -#include -#include -#include #include #define _MPRINTF_REPLACE /* we want curl-functions instead of native ones */ diff --git a/src/writeout.c b/src/writeout.c index e044a9d8e..c0f3f382e 100644 --- a/src/writeout.c +++ b/src/writeout.c @@ -22,9 +22,6 @@ #include "setup.h" -#include -#include - #ifdef HAVE_SYS_TYPES_H #include #endif diff --git a/src/xattr.c b/src/xattr.c index 61d6697bb..1600d88c6 100644 --- a/src/xattr.c +++ b/src/xattr.c @@ -27,7 +27,6 @@ #ifdef HAVE_FSETXATTR #include -#include #include /* include header from libc, not from libattr */ /* mapping table of curl metadata to extended attribute names */ -- cgit v1.2.3