]> granicus.if.org Git - strace/commitdiff
Trivial fixes
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 21 Jun 2011 22:09:25 +0000 (00:09 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 21 Jun 2011 22:09:25 +0000 (00:09 +0200)
* process.c (internal_fork): Remove conditionals which make no difference
  (we return 0 on both branches of these ifs).
* util.c: Fix indentation of an ifdef.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
process.c
util.c

index 2447452dc6ddf06f73ae4babfdd110c015174206..276ce20b85be1f12cd3f40123b283ca6e18c414d 100644 (file)
--- a/process.c
+++ b/process.c
@@ -917,8 +917,7 @@ internal_fork(struct tcb *tcp)
                    (tcp->u_arg[ARG_FLAGS] & CLONE_UNTRACED))
                        return 0;
                fork_tcb(tcp);
-               if (setbpt(tcp) < 0)
-                       return 0;
+               setbpt(tcp);
        } else {
                int pid;
                int bpt;
@@ -961,8 +960,7 @@ internal_fork(struct tcb *tcp)
                if (!followfork || dont_follow)
                        return 0;
                fork_tcb(tcp);
-               if (setbpt(tcp) < 0)
-                       return 0;
+               setbpt(tcp);
        }
        else {
                int bpt = tcp->flags & TCB_BPTSET;
diff --git a/util.c b/util.c
index abf3936dca2677e2ee8a9aafff42bba77e21514a..a03ee4e0a02d09f85b30dc44d436a46da75e1ca9 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1223,7 +1223,7 @@ printcall(struct tcb *tcp)
  */
 #ifndef USE_PROCFS
 
-#ifdef LINUX
+# ifdef LINUX
 
 #  include "syscall.h"