From e808ddb62ebfa99f6edafcb3d4306c141c4492a4 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 22 Oct 2016 23:45:59 +0200 Subject: [PATCH] Fix ps and pstree extra operand not using errx. --- utils/ps.c | 4 ++-- utils/pstree.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/ps.c b/utils/ps.c index 6af48ba8..b1c10b3b 100644 --- a/utils/ps.c +++ b/utils/ps.c @@ -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"); diff --git a/utils/pstree.c b/utils/pstree.c index f2982662..028602f5 100644 --- a/utils/pstree.c +++ b/utils/pstree.c @@ -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);