aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 04:11:16 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 04:11:16 +0000
commit6efb142eeae28cb4cde5b28c36a08d9de7e083cc (patch)
tree12f3402987597dbfada1a47b3f1b544c293d23f3 /url.c
parent[w3m-dev 02447] XTerm's mouse sequence should be skipped? (diff)
downloadw3m-6efb142eeae28cb4cde5b28c36a08d9de7e083cc.tar.gz
w3m-6efb142eeae28cb4cde5b28c36a08d9de7e083cc.zip
remove gcc warnings
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 44bbaa3..ff160c5 100644
--- a/url.c
+++ b/url.c
@@ -178,7 +178,7 @@ free_ssl_ctx()
#if SSLEAY_VERSION_NUMBER >= 0x00905100
#include <rand.h>
-void
+static void
init_PRNG()
{
char buffer[256];
@@ -186,7 +186,7 @@ init_PRNG()
long l;
if (RAND_status())
return;
- if (file = RAND_file_name(buffer, sizeof(buffer))) {
+ if ((file = RAND_file_name(buffer, sizeof(buffer)))) {
#ifdef USE_EGD
if (RAND_egd(file) > 0)
return;
@@ -206,7 +206,7 @@ init_PRNG()
}
#endif /* SSLEAY_VERSION_NUMBER >= 0x00905100 */
-SSL *
+static SSL *
openSSLHandle(int sock)
{
SSL *handle;
@@ -824,7 +824,7 @@ parseURL(char *url, ParsedURL * p_url, ParsedURL * current)
else
p_url->file = copyPath(q, p - q, COPYPATH_SPC_IGNORE);
}
- do_query:
+
if (*p == '?') {
q = ++p;
while (*p && *p != '#')
@@ -864,7 +864,7 @@ copyParsedURL(ParsedURL * p, ParsedURL * q)
void
parseURL2(char *url, ParsedURL * pu, ParsedURL * current)
{
- char *p, *q;
+ char *p;
Str tmp;
int relative_uri = FALSE;
@@ -1165,7 +1165,7 @@ otherinfo(ParsedURL * target, ParsedURL * current, char *referer)
return s->ptr;
}
-Str
+static Str
HTTPrequest(ParsedURL * pu, ParsedURL * current, HRequest * hr, TextList * extra)
{
Str tmp;
@@ -1685,7 +1685,7 @@ add_index_file(ParsedURL * pu, URLFile *uf)
return;
}
-char *
+static char *
guessContentTypeFromTable(struct table2 *table, char *filename)
{
char *p;