From a6cb32c9a4d8dc8643a3c81d06c7087e7df4d71f Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 12 Jun 2004 14:31:32 +0000 Subject: (mix_io_write_word_array_as_char): drop bogus EOF comparison. --- mixlib/mix_io.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3