Changeset 1724 for zzuf/trunk/src


Ignore:
Timestamp:
Jan 28, 2007, 1:50:53 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Print "EOF" instead of -1 when it means EOF.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-stream.c

    r1723 r1724  
    301301        _zz_unlock(fd); \
    302302        FGETC_FUZZ \
    303         if(ret < 0) \
    304             debug("%s([%i]) = %i", __func__, fd, ret); \
     303        if(ret == EOF) \
     304            debug("%s([%i]) = EOF", __func__, fd); \
    305305        else \
    306306            debug("%s([%i]) = '%c'", __func__, fd, ret); \
     
    405405    }
    406406
    407     if(ret < 0)
    408         debug("%s(0x%02x, [%i]) = %i", __func__, c, fd, ret);
     407    if(ret == EOF)
     408        debug("%s(0x%02x, [%i]) = EOF", __func__, c, fd);
    409409    else
    410410        debug("%s(0x%02x, [%i]) = '%c'", __func__, c, fd, ret);
Note: See TracChangeset for help on using the changeset viewer.