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 2447452..276ce20 100644
--- a/process.c
+++ b/process.c
@@ -917,8 +917,7 @@
(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 @@
if (!followfork || dont_follow)
return 0;
fork_tcb(tcp);
- if (setbpt(tcp) < 0)
- return 0;
+ setbpt(tcp);
}
else {
int bpt = tcp->flags & TCB_BPTSET;