comparison buffer_get.c @ 10:3bfef1f22a97

trivial changes to get rid of compile-time warnings
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 31 Jan 2025 15:26:11 +0000
parents 2cb46628feec
children
comparison
equal deleted inserted replaced
9:79b6f035cd96 10:3bfef1f22a97
1 #include "buffer.h" 1 #include "buffer.h"
2 #include "byte.h" 2 #include "byte.h"
3 #include "error.h" 3 #include "error.h"
4 4
5 static int oneread(int (*op)(),int fd,char *buf,unsigned int len) 5 static int oneread(ssize_t (*op)(),int fd,char *buf,unsigned int len)
6 { 6 {
7 int r; 7 int r;
8 8
9 for (;;) { 9 for (;;) {
10 r = op(fd,buf,len); 10 r = op(fd,buf,len);