aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutil.c b/tests/testutil.c
index 77b985a3..ef748b99 100644
--- a/tests/testutil.c
+++ b/tests/testutil.c
@@ -203,7 +203,7 @@ testutil_next_port(void)
(void) UnlockFileEx(h, 0, MAXDWORD, MAXDWORD, &olp);
#else
fseek(f, 0, SEEK_SET);
- ftruncate(fileno(f), 0);
+ (void) ftruncate(fileno(f), 0);
(void) fprintf(f, "%u", port);
(void) lockf(fileno(f), 0, F_ULOCK);