diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2001-04-02 01:02:30 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2001-04-02 01:02:30 -0400 |
commit | 8c68f693cc82e6650afff52fe478c0ccde4bc015 (patch) | |
tree | 395cb6842d38654cda008ac0524564f59d959392 /src/LYNews.c | |
parent | 4bb52da7b05bb0a4331325010be89a0c630f671c (diff) | |
download | lynx-snapshots-8c68f693cc82e6650afff52fe478c0ccde4bc015.tar.gz |
snapshot of project "lynx", label v2-8-4dev_20
Diffstat (limited to 'src/LYNews.c')
-rw-r--r-- | src/LYNews.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LYNews.c b/src/LYNews.c index c9b13506..72309078 100644 --- a/src/LYNews.c +++ b/src/LYNews.c @@ -35,7 +35,7 @@ PRIVATE BOOLEAN message_has_content ARGS2( *nonspaces = FALSE; - if (!filename || (fp = fopen(filename, "r")) == NULL) { + if (!filename || (fp = fopen(filename, TXT_R)) == NULL) { CTRACE((tfp, "Failed to open file %s for reading!\n", NONNULL(filename))); return FALSE; @@ -136,7 +136,7 @@ PUBLIC char *LYNewsPost ARGS2( * and message body. - FM */ #ifdef __DJGPP__ - if ((fd = LYOpenTemp(my_tempfile, HTML_SUFFIX, "wb")) == NULL) + if ((fd = LYOpenTemp(my_tempfile, HTML_SUFFIX, BIN_W)) == NULL) #else if ((fd = LYOpenTemp(my_tempfile, HTML_SUFFIX, "w")) == NULL) #endif /* __DJGPP__ */ @@ -240,11 +240,11 @@ PUBLIC char *LYNewsPost ARGS2( CJKinput[0] = '\0'; switch(kanji_code) { case EUC: - TO_EUC((CONST unsigned char *)kp, CJKinput); + TO_EUC((CONST unsigned char *)kp, (unsigned char *)CJKinput); kp = CJKinput; break; case SJIS: - TO_SJIS((CONST unsigned char *)kp, CJKinput); + TO_SJIS((CONST unsigned char *)kp, (unsigned char *)CJKinput); kp = CJKinput; break; default: @@ -280,7 +280,7 @@ PUBLIC char *LYNewsPost ARGS2( StrAllocCat(cp, org); } #ifdef UNIX - else if ((fp = fopen("/etc/organization", "r")) != NULL) { + else if ((fp = fopen("/etc/organization", TXT_R)) != NULL) { char *buffer = 0; if (LYSafeGets(&buffer, fp) != NULL) { if ((org = strchr(buffer, '\n')) != NULL) { |