Ignore:
Timestamp:
Jan 14, 2021, 2:51:31 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
325e6ea
Parents:
153dc387
Message:

Removed combination of read and feof which doesn't work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/main.cfa

    r153dc387 r7223dbf2  
    176176                                {
    177177                                        char buffer[128];
    178                                         while(!feof(stdin)) {
    179                                                 int ret = cfa_read(0, buffer, 128, 0, -1`s, 0p, 0p);
     178                                        while(int ret = cfa_read(0, buffer, 128, 0, -1`s, 0p, 0p); ret != 0) {
    180179                                                if(ret < 0) abort( "main read error: (%d) %s\n", (int)errno, strerror(errno) );
    181180                                        }
Note: See TracChangeset for help on using the changeset viewer.