Skip to content

Commit

Permalink
tests: fix return type read() and write() replacement stubs
Browse files Browse the repository at this point in the history
Detected by build breakage with FreeBSD 14 CI.
  • Loading branch information
DerDakon committed Oct 21, 2023
1 parent 1fd3f91 commit 1b699b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittest_qmail-remote.c
Expand Up @@ -14,7 +14,7 @@ static const char *writeexpect;
static size_t readoffs;
static size_t writeoffs;

int readstub(int fd, char *buf, int len)
ssize_t readstub(int fd, char *buf, size_t len)
{
size_t inlen = strlen(readexpect) - readoffs;

Expand All @@ -32,7 +32,7 @@ int readstub(int fd, char *buf, int len)
return inlen;
}

int writestub(int fd, const char *buf, int len)
ssize_t writestub(int fd, const char *buf, size_t len)
{
size_t outlen = strlen(writeexpect) - writeoffs;

Expand Down

0 comments on commit 1b699b4

Please sign in to comment.