Browse Source

Fix missing ':' after case EWOULDBLOCK

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent
commit
2b9147ba50
  1. 2
      src/network.c
  2. 2
      src/network_write.c
  3. 2
      src/network_writev.c

2
src/network.c

@ -78,7 +78,7 @@ network_status_t network_read(connection *con, int fd, chunkqueue *cq) {
switch (errno) {
case EAGAIN:
#if EWOULDBLOCK != EAGAIN
case EWOULDBLOCK
case EWOULDBLOCK:
#endif
return len ? NETWORK_STATUS_SUCCESS : NETWORK_STATUS_WAIT_FOR_EVENT;
case ECONNRESET:

2
src/network_write.c

@ -28,7 +28,7 @@ network_status_t network_backend_write(connection *con, int fd, chunkqueue *cq,
switch (errno) {
case EAGAIN:
#if EWOULDBLOCK != EAGAIN
case EWOULDBLOCK
case EWOULDBLOCK:
#endif
return did_write_something ? NETWORK_STATUS_SUCCESS : NETWORK_STATUS_WAIT_FOR_EVENT;
case ECONNRESET:

2
src/network_writev.c

@ -65,7 +65,7 @@ network_status_t network_backend_writev(connection *con, int fd, chunkqueue *cq,
switch (errno) {
case EAGAIN:
#if EWOULDBLOCK != EAGAIN
case EWOULDBLOCK
case EWOULDBLOCK:
#endif
res = did_write_something ? NETWORK_STATUS_SUCCESS : NETWORK_STATUS_WAIT_FOR_EVENT;
goto cleanup;

Loading…
Cancel
Save