silence C23 warning

master
leitner 8 months ago
parent b375c53c7d
commit a71f28fe6c

@ -1,7 +1,7 @@
#include <errno.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;
errno=0;
while (len) {

@ -1,7 +1,7 @@
#include <errno.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;
for (;;) {
if ((w=op(fd,buf,len,cookie))<0)

Loading…
Cancel
Save