From c33cdfcd56cf8bc964bb0e82684fedc7f532d259 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 29 Nov 2001 09:34:14 +0000 Subject: [w3m-dev 02584] code cleanup again From: Fumitoshi UKAI --- url.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'url.c') diff --git a/url.c b/url.c index 25a1260..ecb8c0e 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.11 2001/11/27 17:00:18 ukai Exp $ */ +/* $Id: url.c,v 1.12 2001/11/29 09:34:15 ukai Exp $ */ #include "fm.h" #include #include @@ -349,10 +349,10 @@ baseURL(Buffer *buf) } int -openSocket(char *hostname, +openSocket(char *volatile hostname, char *remoteport_name, unsigned short remoteport_num) { - int sock = -1; + volatile int sock = -1; #ifdef INET6 int *af; struct addrinfo hints, *res0, *res; @@ -365,7 +365,7 @@ openSocket(char *hostname, int a1, a2, a3, a4; unsigned long adr; #endif /* not INET6 */ - MySignalHandler(*trap) (); + MySignalHandler(*volatile trap) (SIGNAL_ARG) = NULL; if (fmInitialized) { message(Sprintf("Opening socket...")->ptr, 0, 0); @@ -481,7 +481,7 @@ openSocket(char *hostname, } else { char **h_addr_list; - int result; + int result = -1; if (fmInitialized) { message(Sprintf("Performing hostname lookup on %s", hostname)->ptr, 0, 0); @@ -1123,7 +1123,7 @@ otherinfo(ParsedURL *target, ParsedURL *current, char *referer) Strcat_charp(s, "User-Agent: "); if (UserAgent == NULL || *UserAgent == '\0') - Strcat_charp(s, version); + Strcat_charp(s, w3m_version); else Strcat_charp(s, UserAgent); Strcat_charp(s, "\r\n"); @@ -1289,7 +1289,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, URLFile uf; HRequest hr; #ifdef USE_SSL - SSL *sslh; + SSL *sslh = NULL; #endif /* USE_SSL */ #ifdef USE_NNTP FILE *fw; -- cgit v1.2.3