diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-07-15 04:01:32 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-07-15 04:01:32 +0000 |
commit | 56d9c8e3aa8fc5282da374038e48bc6825158aa5 (patch) | |
tree | d3ce4771117c551b0490ff29e4d7355e40a9721b | |
parent | 3bcca2be2f75d239871ad7f577be8ef2ad5af175 (diff) | |
download | lcd4linux-56d9c8e3aa8fc5282da374038e48bc6825158aa5.tar.gz |
indent run
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@879 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | plugin_fifo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin_fifo.c b/plugin_fifo.c index c38590f..714066d 100644 --- a/plugin_fifo.c +++ b/plugin_fifo.c @@ -160,10 +160,10 @@ static void fiforead(RESULT * result) if (checkFifo() == 0) { memset(buf, 0, FIFO_BUFFER_SIZE); - while (bytes > 0 && errno != EINTR) { + while (bytes > 0 && errno != EINTR) { bytes = read(fd.input, buf, FIFO_BUFFER_SIZE); } - + if (bytes < 0 || errno > 0) { error("[FIFO] Error %i: %s", errno, strerror(errno)); } else { @@ -175,7 +175,7 @@ static void fiforead(RESULT * result) msg[i] = ' '; } } - } + } /* store result */ SetResult(&result, R_STRING, msg); } @@ -194,7 +194,7 @@ int plugin_init_fifo(void) /* ignore broken pipe */ signal(SIGPIPE, SIG_IGN); - + memset(msg, 0, FIFO_BUFFER_SIZE); AddFunction("fifo::read", 0, fiforead); return 0; |