diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-28 02:24:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-28 02:24:24 +0100 |
commit | 6b9f1633537e2ff06eb1a0741e4598a294f40fcb (patch) | |
tree | a13f4f3558c2988bc95b5a59c9996da64a0bd570 /procps | |
parent | 17323a6245597f16321e6bf99536ae9bb89c79cf (diff) | |
download | busybox-w32-6b9f1633537e2ff06eb1a0741e4598a294f40fcb.tar.gz busybox-w32-6b9f1633537e2ff06eb1a0741e4598a294f40fcb.tar.bz2 busybox-w32-6b9f1633537e2ff06eb1a0741e4598a294f40fcb.zip |
*: style fixes. no code changes (verified with objdump)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pgrep.c | 7 |
1 files changed, 4 insertions, 3 deletions
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) | |||
129 | continue; | 129 | continue; |
130 | 130 | ||
131 | /* NB: OPT_INVERT is always 0 or 1 */ | 131 | /* NB: OPT_INVERT is always 0 or 1 */ |
132 | if (!argv[0] || | 132 | if (!argv[0] |
133 | (regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */ | 133 | || (regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */ |
134 | && (!OPT_ANCHOR || (re_match[0].rm_so == 0 && re_match[0].rm_eo == (regoff_t)strlen(cmd)))) ^ OPT_INVERT | 134 | && (!OPT_ANCHOR || (re_match[0].rm_so == 0 && re_match[0].rm_eo == (regoff_t)strlen(cmd))) |
135 | ) ^ OPT_INVERT | ||
135 | ) { | 136 | ) { |
136 | matched_pid = proc->pid; | 137 | matched_pid = proc->pid; |
137 | if (OPT_LAST) { | 138 | if (OPT_LAST) { |