From: Denys Vlasenko <dvlasenk@redhat.com>
Date: Tue, 21 Jun 2011 22:09:25 +0000 (+0200)
Subject: Trivial fixes
X-Git-Tag: v4.7~363
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7c9024acf94101ceb17006102629f14e0f25553;p=strace

Trivial fixes

* 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>
---

diff --git a/process.c b/process.c
index 2447452d..276ce20b 100644
--- 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 abf3936d..a03ee4e0 100644
--- a/util.c
+++ b/util.c
@@ -1223,7 +1223,7 @@ printcall(struct tcb *tcp)
  */
 #ifndef USE_PROCFS
 
-#ifdef LINUX
+# ifdef LINUX
 
 #  include "syscall.h"