From 6b9f1633537e2ff06eb1a0741e4598a294f40fcb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 28 Jan 2010 02:24:24 +0100 Subject: *: style fixes. no code changes (verified with objdump) Signed-off-by: Denys Vlasenko --- procps/pgrep.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'procps/pgrep.c') diff --git a/procps/pgrep.c b/procps/pgrep.c index 3a717ecff..45de8bcda 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c @@ -129,9 +129,10 @@ int pgrep_main(int argc UNUSED_PARAM, char **argv) continue; /* NB: OPT_INVERT is always 0 or 1 */ - if (!argv[0] || - (regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */ - && (!OPT_ANCHOR || (re_match[0].rm_so == 0 && re_match[0].rm_eo == (regoff_t)strlen(cmd)))) ^ OPT_INVERT + if (!argv[0] + || (regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */ + && (!OPT_ANCHOR || (re_match[0].rm_so == 0 && re_match[0].rm_eo == (regoff_t)strlen(cmd))) + ) ^ OPT_INVERT ) { matched_pid = proc->pid; if (OPT_LAST) { -- cgit v1.2.3