aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-27 16:46:13 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-27 16:46:13 +0000
commitee18da17df3863c1eb433ee697ff13fefc51ab82 (patch)
tree8f4cc8fc15b21ac7a0d05c6013fb3527500ffc92
parentfix indent (diff)
downloadw3m-ee18da17df3863c1eb433ee697ff13fefc51ab82.tar.gz
w3m-ee18da17df3863c1eb433ee697ff13fefc51ab82.zip
fix build errors
* display.c (make_lastline_message): fix error for undef JP_CHARSET * news.c (readNewsgroup: `code' always required From: Fumitoshi UKAI <ukai@debian.or.jp>
-rw-r--r--ChangeLog6
-rw-r--r--display.c4
-rw-r--r--news.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 31ff361..46a5ea0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2002-12-28 Fumitoshi UKAI <ukai@debian.or.jp>
+ * fix build errors
+ * display.c (make_lastline_message): fix error for undef JP_CHARSET
+ * news.c (readNewsgroup: `code' always required
+
* gcc -Wall -Werror clean
* file.c (loadHTMLstream): unused variable `p'
* news.c (news_command): unused variable `c'
@@ -6153,4 +6157,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.654 2002/12/27 16:30:53 ukai Exp $
+$Id: ChangeLog,v 1.655 2002/12/27 16:46:13 ukai Exp $
diff --git a/display.c b/display.c
index 97eec10..f37b9e5 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.48 2002/12/18 16:33:19 ukai Exp $ */
+/* $Id: display.c,v 1.49 2002/12/27 16:46:13 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -326,8 +326,8 @@ make_lastline_message(Buffer *buf)
if (s) {
int l = COLS - 3 - s->length;
-#ifdef JP_CHARSET
if (msg->length > l) {
+#ifdef JP_CHARSET
char *p;
int i;
for (p = msg->ptr; *p; p += i) {
diff --git a/news.c b/news.c
index 9455aa7..b7f9362 100644
--- a/news.c
+++ b/news.c
@@ -1,4 +1,4 @@
-/* $Id: news.c,v 1.4 2002/12/27 16:31:49 ukai Exp $ */
+/* $Id: news.c,v 1.5 2002/12/27 16:46:13 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include <stdio.h>
@@ -274,9 +274,7 @@ readNewsgroup(ParsedURL *pu)
char *volatile qgroup;
int status, i, first, last;
volatile int flag = 0, start = 0, end = 0;
-#ifdef JP_CHARSET
char code = '\0';
-#endif
MySignalHandler(*volatile trap) (SIGNAL_ARG) = NULL;
if (current_news.host == NULL || !pu->file || *pu->file == '\0')