aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tunala/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tunala/buffer.c')
-rw-r--r--demos/tunala/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/tunala/buffer.c b/demos/tunala/buffer.c
index dc26c88601..c5cd004209 100644
--- a/demos/tunala/buffer.c
+++ b/demos/tunala/buffer.c
@@ -87,7 +87,7 @@ static unsigned int buffer_takedata(buffer_t *buf, unsigned char *ptr,
int buffer_from_fd(buffer_t *buf, int fd)
{
- unsigned int toread = buffer_unused(buf);
+ int toread = buffer_unused(buf);
if(toread == 0)
/* Shouldn't be called in this case! */
abort();
@@ -101,7 +101,7 @@ int buffer_from_fd(buffer_t *buf, int fd)
int buffer_to_fd(buffer_t *buf, int fd)
{
- unsigned int towrite = buffer_used(buf);
+ int towrite = buffer_used(buf);
if(towrite == 0)
/* Shouldn't be called in this case! */
abort();