silence C23 warning

master
leitner 11 months ago
parent b375c53c7d
commit a71f28fe6c

@ -1,7 +1,7 @@
#include <errno.h> #include <errno.h>
#include "buffer.h" #include "buffer.h"
ssize_t buffer_stubborn(ssize_t (*op)(),int fd,const char* buf, size_t len,void* cookie) { ssize_t buffer_stubborn(ssize_t (*op)(int fd,const char* buf,size_t len,void* cookie),int fd,const char* buf, size_t len,void* cookie) {
ssize_t w; ssize_t w;
errno=0; errno=0;
while (len) { while (len) {

@ -1,7 +1,7 @@
#include <errno.h> #include <errno.h>
#include "buffer.h" #include "buffer.h"
ssize_t buffer_stubborn_read(ssize_t (*op)(),int fd,const char* buf, size_t len,void* cookie) { ssize_t buffer_stubborn_read(ssize_t (*op)(int fd,const char* buf,size_t len,void* cookie),int fd,const char* buf, size_t len,void* cookie) {
ssize_t w; ssize_t w;
for (;;) { for (;;) {
if ((w=op(fd,buf,len,cookie))<0) if ((w=op(fd,buf,len,cookie))<0)

Loading…
Cancel
Save