diff options
Diffstat (limited to 'main/sockbuf.c')
-rw-r--r-- | main/sockbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/sockbuf.c b/main/sockbuf.c index 0fede63..5b88393 100644 --- a/main/sockbuf.c +++ b/main/sockbuf.c @@ -1,7 +1,7 @@ #include "sockbuf.h" -#include <unistd.h> #include <string.h> +#include <unistd.h> void sockbuf_write(sockbuf_t* sockbuf, const char* value) { @@ -21,7 +21,7 @@ int peek_char(sockbuf_t* sockbuf) if (sockbuf->next == sockbuf->last) { sockbuf->next = 0; int size = read(sockbuf->socket, sockbuf->buf, sizeof(sockbuf->buf)); - sockbuf->last = (uint8_t) size; + sockbuf->last = (uint8_t)size; if (size <= 0) { return size - 1; @@ -36,7 +36,7 @@ int get_char(sockbuf_t* sockbuf) int ret = peek_char(sockbuf); if (ret >= 0) { - sockbuf->next ++; + sockbuf->next++; } return ret; |