Fix ps and pstree extra operand not using errx.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-10-22 23:45:59 +02:00
parent eacfc72f2f
commit e808ddb62e
2 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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);