From 89b575d3c5361444aca1adad14ed722b051b934c Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 21 Apr 2016 20:33:32 +0000 Subject: [PATCH] tests/dup.c: cleanup --- tests/dup.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/dup.c b/tests/dup.c index 6debeb49..0407097f 100644 --- a/tests/dup.c +++ b/tests/dup.c @@ -6,11 +6,8 @@ int main(void) { - const int fd = -1; - int rc = dup(fd); - printf("dup(%d) = %d %s (%m)\n", - fd, rc, - errno2name()); + int rc = dup(-1); + printf("dup(-1) = %d %s (%m)\n", rc, errno2name()); puts("+++ exited with 0 +++"); return 0; -- 2.40.0