mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix ps and pstree extra operand not using errx.
This commit is contained in:
parent
eacfc72f2f
commit
e808ddb62e
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015 Jonas 'Sortie' Termansen.
|
||||
* Copyright (c) 2015, 2016 Jonas 'Sortie' Termansen.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -132,7 +132,7 @@ int main(int argc, char* argv[])
|
|||
compact_arguments(&argc, &argv);
|
||||
|
||||
if ( 1 < argc )
|
||||
err(1, "extra operand: %s", argv[1]);
|
||||
errx(1, "extra operand: %s", argv[1]);
|
||||
|
||||
if ( show_full || show_long )
|
||||
printf("UID\t");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015 Jonas 'Sortie' Termansen.
|
||||
* Copyright (c) 2015, 2016 Jonas 'Sortie' Termansen.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -185,7 +185,7 @@ int main(int argc, char* argv[])
|
|||
compact_arguments(&argc, &argv);
|
||||
|
||||
if ( 1 < argc )
|
||||
err(1, "extra operand: %s", argv[1]);
|
||||
errx(1, "extra operand: %s", argv[1]);
|
||||
|
||||
pstree(1, "", true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue