diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-05 15:34:49 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-05-02 18:16:06 +0200 |
commit | 695e3efd921dac7848066b6b64ef5e2ebbe7f526 (patch) | |
tree | bc2aa281544b5f25004c10e1faec7b426b5e3a29 /ax25ipd/io.c | |
parent | 6276436bfa71fb22c4cb2ff09faa8d75e4c473a1 (diff) |
Reformat consistently. Strictly whitespace changes only.
Indentation by tabs only. Move case labels in switches are on the same
level as the switch keyword.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/io.c')
-rw-r--r-- | ax25ipd/io.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ax25ipd/io.c b/ax25ipd/io.c index db26657..368aae2 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -568,7 +568,7 @@ int io_error( #ifdef notdef /* select() said that data is available, but recvfrom sais * EAGAIN - i really do not know what's the sense in this.. */ - if (dir == READ_MSG && oops != TTY_MODE /* && != TCP_MODE, if we'd implement this */ ) + if (dir == READ_MSG && oops != TTY_MODE /* && != TCP_MODE, if we'd implement this */ ) return 0; perror("System 5 I/O error!"); fprintf(stderr, "A System 5 style I/O error was detected. This rogram requires BSD 4.2\n"); @@ -576,16 +576,16 @@ int io_error( fprintf(stderr, "Mode 0x%2.2x, LINE: %d. During %s\n", mode, where, (dir == READ_MSG ? "READ" : "WRITE")); exit(3); #else - int ret = 0; - if (dir == READ_MSG) { - LOGL4("read / recv returned -1 EAGAIN\n"); - ret = 0; - } else if (dir == SEND_MSG) { - LOGL4("write / send returned -1 EAGAIN, sleeping and retrying!\n"); - usleep(100000); - ret = 1; - } - return ret; + int ret = 0; + if (dir == READ_MSG) { + LOGL4("read / recv returned -1 EAGAIN\n"); + ret = 0; + } else if (dir == SEND_MSG) { + LOGL4("write / send returned -1 EAGAIN, sleeping and retrying!\n"); + usleep(100000); + ret = 1; + } + return ret; #endif } #endif |