mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 13:08:23 +00:00
[KILL] main(): Return actual return value
and get rid of 'tail' variable, which had wrong type anyway. Also, be strict about parameter number: only 1 PID is supported.
This commit is contained in:
parent
56baf8e2e8
commit
5a30c71e70
1 changed files with 3 additions and 7 deletions
|
@ -63,15 +63,11 @@ ExecuteKill(char *lpPid)
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char tail;
|
if (argc != 2)
|
||||||
DBG_UNREFERENCED_LOCAL_VARIABLE(tail);
|
|
||||||
|
|
||||||
if (argc < 2)
|
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: %s PID (Process ID)\n", argv[0]);
|
fprintf(stderr, "Usage: %s PID (Process ID)\n", argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
tail = ExecuteKill(argv[1]);
|
return ExecuteKill(argv[1]);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue