]> granicus.if.org Git - strace/commitdiff
tests/dup.c: cleanup
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Apr 2016 20:33:32 +0000 (20:33 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Apr 2016 20:52:41 +0000 (20:52 +0000)
tests/dup.c

index 6debeb4947ca9cf1650093c34ad2797a4bf47b07..0407097f3d106962b8882a20310a1af58ad562b7 100644 (file)
@@ -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;