silence C23 warning

This commit is contained in:
leitner 2024-01-24 16:02:53 +00:00
parent b375c53c7d
commit a71f28fe6c
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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)