aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-29 09:34:14 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-29 09:34:14 +0000
commitc33cdfcd56cf8bc964bb0e82684fedc7f532d259 (patch)
tree4696c5ee6f959dfbe0b7da9bf58e4c23c27cd584 /url.c
parent[w3m-dev 02579] Use environment variables CC, CFLAGS, LDFLAGS (diff)
downloadw3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.tar.gz
w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.zip
[w3m-dev 02584] code cleanup again
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'url.c')
-rw-r--r--url.c14
1 files changed, 7 insertions, 7 deletions
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 <sys/types.h>
#include <sys/socket.h>
@@ -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;