From 3da9693b81db07da14e3e3364f81a6f4d4c26597 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 17 Mar 2012 03:17:15 +0100 Subject: [PATCH] Remove unused constants. No code changes * syscall.c: Remove unused ENOIOCTLCMD constant. Fix indentation. * util.c: Remove unused CLONE_STOPPED constant. Signed-off-by: Denys Vlasenko --- syscall.c | 11 ++++------- util.c | 3 --- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/syscall.c b/syscall.c index 015b35c8..6737f287 100644 --- a/syscall.c +++ b/syscall.c @@ -68,16 +68,13 @@ #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 18d29b74..57402732 100644 --- 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) -- 2.40.0