]> granicus.if.org Git - strace/commitdiff
Remove redundant check for PTRACE_LISTEN availability
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Aug 2016 09:12:06 +0000 (09:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Aug 2016 09:12:06 +0000 (09:12 +0000)
As ptrace.h already ensures that PTRACE_LISTEN is defined,
there is no need to check this fact in other places.

* strace.c (ptrace_restart): Do not check that PTRACE_LISTEN is defined.

strace.c

index a4b999e1269e0582249d470a985720c0dc1c586d..ffb6baec2a6be16a5200d92cc33a9ec0c994fd5d 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -405,10 +405,8 @@ ptrace_restart(int op, struct tcb *tcp, int sig)
                msg = "CONT";
        if (op == PTRACE_DETACH)
                msg = "DETACH";
-#ifdef PTRACE_LISTEN
        if (op == PTRACE_LISTEN)
                msg = "LISTEN";
-#endif
        /*
         * Why curcol != 0? Otherwise sometimes we get this:
         *