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>
This commit is contained in:
Denys Vlasenko 2011-06-22 00:09:25 +02:00
parent 081e72f41a
commit e7c9024acf
2 changed files with 3 additions and 5 deletions

View File

@ -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;

2
util.c
View File

@ -1223,7 +1223,7 @@ printcall(struct tcb *tcp)
*/
#ifndef USE_PROCFS
#ifdef LINUX
# ifdef LINUX
# include "syscall.h"