From 4493ae705f57d21e38c2a1ecb7963e75059b8988 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 22 Nov 2001 13:30:02 +0000 Subject: [w3m-dev 02497] From: WATANABE Katsuyuki --- ChangeLog | 6 ++++++ indep.c | 9 +-------- url.c | 16 ++++------------ 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index cbc8c68..2d5c681 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-11-22 WATANABE Katsuyuki + + * [w3m-dev 02497] + * url.c (parseURL2): fix #ifdef __EMX__ code + * indep.c (cleanupName): remove #if 0 /* SUPPORT_NETBIOS_SHARE */ code + 2001-11-22 Fumitoshi UKAI * [w3m-dev 02494] diff --git a/indep.c b/indep.c index a3ce9bd..717d9b5 100644 --- a/indep.c +++ b/indep.c @@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.6 2001/11/21 16:29:46 ukai Exp $ */ +/* $Id: indep.c,v 1.7 2001/11/22 13:30:02 ukai Exp $ */ #include "fm.h" #include #include @@ -122,13 +122,6 @@ cleanupName(char *name) } else if (strncmp(p, "//", 2) == 0) { /* foo//bar */ /* -> foo/bar */ -#if 0 /* ifdef SUPPORT_NETBIOS_SHARE */ - if (p == buf) { /* //DRIVE/foo or //host/path */ - p += 2; - q += 2; - continue; - } -#endif /* SUPPORT_NETBIOS_SHARE */ *p = '\0'; q++; strcat(buf, q); diff --git a/url.c b/url.c index 68e9d71..c8dd72c 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.7 2001/11/21 16:29:47 ukai Exp $ */ +/* $Id: url.c,v 1.8 2001/11/22 13:30:02 ukai Exp $ */ #include "fm.h" #include #include @@ -931,18 +931,10 @@ parseURL2(char *url, ParsedURL * pu, ParsedURL * current) #ifdef __EMX__ if (pu->scheme == SCM_LOCAL) { if (strncmp(pu->file, "/$LIB/", 6)) { - char *arg, abs[_MAX_PATH], tmp[_MAX_PATH]; + char abs[_MAX_PATH]; - if (!(arg = strchr(strcpy(tmp, pu->file), '?'))) { - _abspath(abs, tmp, _MAX_PATH); - pu->file = cleanupName(abs); - } - else { - *arg = 0; - _abspath(abs, tmp, _MAX_PATH); - *arg = '?'; - pu->file = cleanupName(strcat(abs, arg)); - } + _abspath(abs, pu->file, _MAX_PATH); + pu->file = cleanupName(abs); } } #else -- cgit v1.2.3