summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-12 14:31:32 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-12 14:31:32 +0000
commitc50cce44b64a0c54d72c09e01804121765b63e66 (patch)
tree3debeb7ad8af2b26b5d8e10d26685559abb88f6c
parent9c79c97a348462e5e338f4f97308f5207755c470 (diff)
downloadmdk-c50cce44b64a0c54d72c09e01804121765b63e66.tar.gz
mdk-c50cce44b64a0c54d72c09e01804121765b63e66.tar.bz2
(mix_io_write_word_array_as_char): drop bogus EOF comparison.
-rw-r--r--mixlib/mix_io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mixlib/mix_io.c b/mixlib/mix_io.c
index 893449c..8f3fb5d 100644
--- a/mixlib/mix_io.c
+++ b/mixlib/mix_io.c
@@ -170,7 +170,6 @@ mix_io_write_word_array_as_char (mix_iochannel_t *ioc,
if ((ioc == NULL) || (w == NULL)) return FALSE;
- printf ("->\n");
for (k = 0; k < s; k++)
for (j = 1; j < 6; j++)
{
@@ -197,7 +196,7 @@ mix_io_read_word_array_as_char (mix_iochannel_t *ioc,
for (j = 1; j < 6; j++)
{
if (!eol && !read_data_ (ioc, &value, 1)) return FALSE;
- eol = eol || (value == '\n') || (value == EOF);
+ eol = eol || (value == '\n') || is_eof_ (ioc);
mix_word_set_byte (&w[k], j, eol? spc : mix_ascii_to_char (value));
}
for (; k < s; ++k) w[k] = MIX_WORD_ZERO;