From: Dmitry V. Levin Date: Thu, 21 Apr 2016 20:33:32 +0000 (+0000) Subject: tests/dup.c: cleanup X-Git-Tag: v4.12~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89b575d3c5361444aca1adad14ed722b051b934c;p=strace tests/dup.c: cleanup --- 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;