From c325bc190633349e806d0f2c313ace2338950f88 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 18 Jun 2004 20:16:42 +0000 Subject: Compiler warnings fixes, preprocessor and minor general cleanup. svn path=/trunk/; revision=3901 --- socket.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 83fd4d64..108f2e30 100644 --- a/socket.c +++ b/socket.c @@ -73,9 +73,7 @@ static int h_errno; #endif /* ndef h_errno */ -extern int mailserver_socket_temp; /* Socket to close if connect timeout */ - -#if NET_SECURITY +#ifdef NET_SECURITY #include #endif /* NET_SECURITY */ @@ -171,7 +169,6 @@ static int handle_plugin(const char *host, /* error */ report(stderr, GT_("fetchmail: fork failed\n")); return -1; - break; case 0: /* child */ /* fds[1] is the parent's end; close it for proper EOF ** detection */ @@ -258,13 +255,13 @@ int UnixOpen(const char *path) return sock; } -#if INET6_ENABLE +#ifdef INET6_ENABLE int SockOpen(const char *host, const char *service, const char *options, const char *plugin) { struct addrinfo *ai, *ai0, req; int i; -#if NET_SECURITY +#ifdef NET_SECURITY void *request = NULL; int requestlen; #endif /* NET_SECURITY */ -- cgit v1.2.3