diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-15 03:45:02 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-15 03:45:02 +0000 |
commit | 522460b2e20e09f19a193e0f1525b7941487aabe (patch) | |
tree | 20cb5f027e5cef0c6e02804a9e6f3c7f5f9074ed /file.c | |
parent | [w3m-dev 02834] mailto: use external program (diff) | |
download | w3m-522460b2e20e09f19a193e0f1525b7941487aabe.tar.gz w3m-522460b2e20e09f19a193e0f1525b7941487aabe.zip |
file.c (loadGeneralFile): return NULL, not NO_BUFFER
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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; } |