diff options
author | David Shaw <[email protected]> | 2003-05-24 16:53:14 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-24 16:53:14 +0000 |
commit | c84fdfbe620ed3e9d4d3f6c03b3fcea8a1685c72 (patch) | |
tree | dc24a02a957c942f43de558c2424dc897d7f1345 /util/http.c | |
parent | * cipher.h, i18n.h, iobuf.h, memory.h, mpi.h, types.h, util.h: Edit all (diff) | |
download | gnupg-c84fdfbe620ed3e9d4d3f6c03b3fcea8a1685c72.tar.gz gnupg-c84fdfbe620ed3e9d4d3f6c03b3fcea8a1685c72.zip |
* argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,
simple-gettext.c, errors.c, http.c, memory.c, secmem.c, ttyio.c: Edit all
preprocessor instructions to remove whitespace before the '#'. This is
not required by C89, but there are some compilers out there that don't
like it.
Diffstat (limited to 'util/http.c')
-rw-r--r-- | util/http.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/http.c b/util/http.c index 4cc31e3c0..a328fbd0d 100644 --- a/util/http.c +++ b/util/http.c @@ -27,16 +27,16 @@ #include <errno.h> #ifdef __MINGW32__ - #include <windows.h> +#include <windows.h> #else - #include <unistd.h> - #include <sys/types.h> - #include <sys/socket.h> - #include <sys/time.h> - #include <time.h> - #include <netinet/in.h> - #include <arpa/inet.h> - #include <netdb.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <sys/time.h> +#include <time.h> +#include <netinet/in.h> +#include <arpa/inet.h> +#include <netdb.h> #endif #include "util.h" @@ -46,11 +46,11 @@ #include "srv.h" #ifdef __riscos__ - #define HTTP_PROXY_ENV "GnuPG$HttpProxy" - #define HTTP_PROXY_ENV_PRINTABLE "<GnuPG$HttpProxy>" +#define HTTP_PROXY_ENV "GnuPG$HttpProxy" +#define HTTP_PROXY_ENV_PRINTABLE "<GnuPG$HttpProxy>" #else - #define HTTP_PROXY_ENV "http_proxy" - #define HTTP_PROXY_ENV_PRINTABLE "$http_proxy" +#define HTTP_PROXY_ENV "http_proxy" +#define HTTP_PROXY_ENV_PRINTABLE "$http_proxy" #endif #ifdef __MINGW32__ @@ -66,7 +66,7 @@ "!\"#$%&'()*+,-./:;<=>?[\\]^_{|}~" #ifndef EAGAIN - #define EAGAIN EWOULDBLOCK +#define EAGAIN EWOULDBLOCK #endif static int parse_uri( PARSED_URI *ret_uri, const char *uri ); @@ -172,11 +172,11 @@ http_wait_response( HTTP_HD hd, unsigned int *ret_status ) http_start_data( hd ); /* make sure that we are in the data */ - #if 0 +#if 0 hd->sock = dup( hd->sock ); if( hd->sock == -1 ) return G10ERR_GENERAL; - #endif +#endif iobuf_ioctl (hd->fp_write, 1, 1, NULL); /* keep the socket open */ iobuf_close (hd->fp_write); hd->fp_write = NULL; @@ -843,7 +843,7 @@ write_server( int sock, const char *data, size_t length ) nleft = length; while( nleft > 0 ) { - #ifdef __MINGW32__ +#ifdef __MINGW32__ int nwritten; nwritten = send (sock, data, nleft, 0); @@ -851,7 +851,7 @@ write_server( int sock, const char *data, size_t length ) log_info ("write failed: ec=%d\n", (int)WSAGetLastError ()); return G10ERR_NETWORK; } - #else +#else int nwritten = write( sock, data, nleft ); if( nwritten == -1 ) { if( errno == EINTR ) @@ -867,7 +867,7 @@ write_server( int sock, const char *data, size_t length ) log_info("write failed: %s\n", strerror(errno)); return G10ERR_NETWORK; } - #endif +#endif nleft -=nwritten; data += nwritten; } |