aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-15 03:45:02 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-15 03:45:02 +0000
commit522460b2e20e09f19a193e0f1525b7941487aabe (patch)
tree20cb5f027e5cef0c6e02804a9e6f3c7f5f9074ed
parent[w3m-dev 02834] mailto: use external program (diff)
downloadw3m-522460b2e20e09f19a193e0f1525b7941487aabe.tar.gz
w3m-522460b2e20e09f19a193e0f1525b7941487aabe.zip
file.c (loadGeneralFile): return NULL, not NO_BUFFER
Diffstat (limited to '')
-rw-r--r--ChangeLog6
-rw-r--r--file.c18
2 files changed, 14 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ac4cd2..bbc605f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-01-15 Fumitoshi UKAI <ukai@debian.or.jp>
+ * file.c (loadGeneralFile): return NULL, not NO_BUFFER
+
+2002-01-15 Fumitoshi UKAI <ukai@debian.or.jp>
+
* [w3m-dev 02833] ssl_forbid_method in SSL Setting
* rc.c (params7): ssl_forbid_method moved here
* rc.c (params8): ssl_forbid_method removed here
@@ -1922,4 +1926,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.215 2002/01/14 16:31:26 ukai Exp $
+$Id: ChangeLog,v 1.216 2002/01/15 03:45:02 ukai Exp $
diff --git a/file.c b/file.c
index 86c995b..62f1242 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.43 2002/01/14 15:59:17 ukai Exp $ */
+/* $Id: file.c,v 1.44 2002/01/15 03:45:02 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1052,7 +1052,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
{
struct stat st;
if (stat(pu.real_file, &st) < 0)
- return NO_BUFFER;
+ return NULL;
if (S_ISDIR(st.st_mode)) {
if (UseExternalDirBuffer) {
Str cmd = Strnew_charp(DirBufferCommand);
@@ -1069,7 +1069,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
else {
b = dirBuffer(pu.real_file);
if (b == NULL)
- return NO_BUFFER;
+ return NULL;
t = "text/html";
b->real_scheme = pu.scheme;
goto loaded;
@@ -1090,7 +1090,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
}
disp_err_message(Sprintf("Unknown URI: %s",
parsedURL2Str(&pu)->ptr)->ptr, FALSE);
- return NO_BUFFER;
+ return NULL;
}
/* openURL() succeeded */
@@ -1103,7 +1103,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (b)
discardBuffer(b);
UFclose(&f);
- return NO_BUFFER;
+ return NULL;
}
b = NULL;
@@ -1140,7 +1140,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (IStype(f.stream) == IST_SSL) {
Str s = ssl_get_certificate(f.stream, pu.host);
if (s == NULL)
- return NO_BUFFER;
+ return NULL;
else
t_buf->ssl_certificate = s->ptr;
}
@@ -1200,7 +1200,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
/* abort */
UFclose(&f);
signal(SIGINT, prevtrap);
- return NO_BUFFER;
+ return NULL;
}
UFclose(&f);
add_auth_cookie_flag = 1;
@@ -1221,7 +1221,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
/* abort */
UFclose(&f);
signal(SIGINT, prevtrap);
- return NO_BUFFER;
+ return NULL;
}
UFclose(&f);
status = HTST_NORMAL;
@@ -1438,7 +1438,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (IStype(f.stream) == IST_SSL) {
Str s = ssl_get_certificate(f.stream, pu.host);
if (s == NULL)
- return NO_BUFFER;
+ return NULL;
else
t_buf->ssl_certificate = s->ptr;
}