]> granicus.if.org Git - strace/commitdiff
Remove unused constants. No code changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 17 Mar 2012 02:17:15 +0000 (03:17 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 17 Mar 2012 02:17:15 +0000 (03:17 +0100)
* syscall.c: Remove unused ENOIOCTLCMD constant. Fix indentation.
* util.c: Remove unused CLONE_STOPPED constant.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
syscall.c
util.c

index 015b35c88a0466f345170f3c50b351e01b29375d..6737f287d119f7d8483c97c4cf7c3b8cea3485da 100644 (file)
--- a/syscall.c
+++ b/syscall.c
 #ifndef ERESTARTSYS
 # define ERESTARTSYS   512
 #endif
-# ifndef ERESTARTNOINTR
+#ifndef ERESTARTNOINTR
 # define ERESTARTNOINTR        513
 #endif
-# ifndef ERESTARTNOHAND
-# define ERESTARTNOHAND        514     /* restart if no handler.. */
+#ifndef ERESTARTNOHAND
+# define ERESTARTNOHAND        514     /* restart if no handler */
 #endif
-# ifndef ENOIOCTLCMD
-# define ENOIOCTLCMD   515     /* No ioctl command */
-#endif
-# ifndef ERESTART_RESTARTBLOCK
+#ifndef ERESTART_RESTARTBLOCK
 # define ERESTART_RESTARTBLOCK 516     /* restart by calling sys_restart_syscall */
 #endif
 
diff --git a/util.c b/util.c
index 18d29b74dc440bc32fb45cb6eaac24604e28f9f6..574027328d2c7fe6f1dbad9acf1645a0bc80e3ab 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1165,9 +1165,6 @@ printcall(struct tcb *tcp)
 #ifndef CLONE_VM
 # define CLONE_VM        0x00000100
 #endif
-#ifndef CLONE_STOPPED
-# define CLONE_STOPPED   0x02000000
-#endif
 
 static int
 change_syscall(struct tcb *tcp, int new)