aboutsummaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-10 17:06:17 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-10 17:06:17 +0000
commitf4d6305bdddca9c1deb51bd19904779cbbf4406b (patch)
tree06f30cd3d18ec1357802f1b836a83007992c3267 /html.h
parentfix indent (diff)
downloadw3m-f4d6305bdddca9c1deb51bd19904779cbbf4406b.tar.gz
w3m-f4d6305bdddca9c1deb51bd19904779cbbf4406b.zip
[w3m-dev 03632] cleanup (don't close connection of news server)
* file.c (loadSomething): remove UFclose nntp:,news: (loadFile): UFclose (loadGeneralFile): always UFclose * html.h (UFclose): only reset when ISclose ==0 * istream.c (ISclose): return int (ISfileno): flag IST_UNCLOSE * istream.h (ISclose): return int (IST_UNCLOSE): added * news.c (news_close): reset IST_UNCLOSE (news_open): set IST_UNCLOSE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--html.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.h b/html.h
index 6f5ea11..af56799 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.19 2003/01/08 17:24:12 ukai Exp $ */
+/* $Id: html.h,v 1.20 2003/01/10 17:06:23 ukai Exp $ */
#ifndef _HTML_H
#define _HTML_H
#ifdef USE_SSL
@@ -14,7 +14,7 @@
#define UFgetc(f) ISgetc((f)->stream)
#define UFundogetc(f) ISundogetc((f)->stream)
#define UFread(f,buf,len) ISread((f)->stream,buf,len)
-#define UFclose(f) (ISclose((f)->stream), (f)->stream = NULL)
+#define UFclose(f) (ISclose((f)->stream) == 0 && ((f)->stream = NULL))
struct cmdtable {
char *cmdname;