summaryrefslogtreecommitdiffstats
path: root/tests/mksock.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mksock.c')
-rw-r--r--tests/mksock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mksock.c b/tests/mksock.c
index 05edbeb..42ef322 100644
--- a/tests/mksock.c
+++ b/tests/mksock.c
@@ -100,7 +100,7 @@ int main(int argc, char *argv[]) {
ret = EXIT_FAILURE;
}
- if (close(fd) != 0) {
+ if (xclose(fd) != 0) {
errmsg(cmd, path);
ret = EXIT_FAILURE;
}