-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
get_linux_process_id/src/find_process.c
Line 304 in f8a7020
| if( (cbfInternArg.cbfArg.mode & FPROC_RLINK) != 0 ) |
get_linux_process_id/src/find_process.c
Line 322 in f8a7020
| else if( (cbfInternArg.cbfArg.mode & FPROC_BASENAME) != 0 ) |
get_linux_process_id/example/test/test.c
Line 56 in f8a7020
| ret = findProcesses( ppArgv[1], onFoundProcess, ppArgv, FPROC_BASENAME | FPROC_RLINK ); |
These lines do not work together.
You call function foo(A | B),
but inside the function foo() you do
If (A)
{...}
else if (B)
{...}
This means, the function called with (A | B) goes only inside block if (A)
and never inside if (B), because of "else" staying before it.
If the user wants to check both A and B, he has to call such function twice, foo(A); foo(B).
Metadata
Metadata
Assignees
Labels
No labels