ps: fix build breakage from vda's recent commit

*: whitespace fixes
This commit is contained in:
Denis Vlasenko
2008-01-07 16:13:14 +00:00
parent 4e9ca75281
commit 6b404431aa
9 changed files with 57 additions and 57 deletions

View File

@@ -116,7 +116,7 @@ int pgrep_main(int argc, char **argv)
cmd = proc->comm;
/* NB: OPT_INVERT is always 0 or 1 */
if ((regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */
&& (!OPT_ANCHOR || (re_match[0].rm_so == 0 && re_match[0].rm_eo == strlen(cmd)))) ^ OPT_INVERT
&& (!OPT_ANCHOR || (re_match[0].rm_so == 0 && re_match[0].rm_eo == strlen(cmd)))) ^ OPT_INVERT
) {
matched_pid = proc->pid;
if (OPT_LAST) {