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();
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();