From 9aeb8f999985730703fd1e9318ec2c2063cf6565 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 21 May 2018 05:00:19 +0000 Subject: [PATCH] top(1): add myself as a MAINTAIENR also fix some nits --- MAINTAINERS | 1 + usr.bin/top/username.h | 3 --- usr.bin/top/utils.c | 8 +------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7ee90c1bb4cd..72c36b132466 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -99,6 +99,7 @@ sys/netpfil/pf kp,glebius Pre-commit review recommended. sys/x86/xen royger Pre-commit review recommended. sys/xen royger Pre-commit review recommended. tests freebsd-testing,ngie Pre-commit review requested. +top(1) eadler Pre-commit review requested. usr.sbin/bsdconfig dteske Pre-commit phabricator review requested. usr.sbin/dpv dteske Pre-commit review requested. Keep in sync with libdpv. usr.sbin/pkg pkg@ Please coordinate behavior or flag changes with pkg team. diff --git a/usr.bin/top/username.h b/usr.bin/top/username.h index c412398d418e..e1fff2e4735e 100644 --- a/usr.bin/top/username.h +++ b/usr.bin/top/username.h @@ -1,7 +1,4 @@ /* - * Top users/processes display for Unix - * Version 3 - * * This program may be freely redistributed, * but this entire comment MUST remain intact. * diff --git a/usr.bin/top/utils.c b/usr.bin/top/utils.c index bbd4892cf878..f688ed18eedf 100644 --- a/usr.bin/top/utils.c +++ b/usr.bin/top/utils.c @@ -1,7 +1,4 @@ /* - * Top users/processes display for Unix - * Version 3 - * * This program may be freely redistributed, * but this entire comment MUST remain intact. * @@ -397,10 +394,7 @@ long seconds; #define NUM_STRINGS 8 -char *format_k(amt) - -int amt; - +char *format_k(int amt) { static char retarray[NUM_STRINGS][16]; static int index = 0;