aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pmc/cmd_pmc_stat.c
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-06-09 04:54:36 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-06-09 04:54:36 +0000
commit32b68c46fa0d700f02e3ac69f9a89f27d48d7395 (patch)
tree9a4254b4ae1641097e9172d817173a294f2fbcea /usr.sbin/pmc/cmd_pmc_stat.c
parent7fe961ff485b09d260c547849b2780b97f190dcc (diff)
pmc: mark some dead functions as such
Also change a single instance of the comma operator to a semi-colon. Reviewed by: mmacy
Notes
Notes: svn path=/head/; revision=334874
Diffstat (limited to 'usr.sbin/pmc/cmd_pmc_stat.c')
-rw-r--r--usr.sbin/pmc/cmd_pmc_stat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/pmc/cmd_pmc_stat.c b/usr.sbin/pmc/cmd_pmc_stat.c
index 7ea54c08681f..44ca7b92dea7 100644
--- a/usr.sbin/pmc/cmd_pmc_stat.c
+++ b/usr.sbin/pmc/cmd_pmc_stat.c
@@ -106,7 +106,7 @@ static const char *pmc_stat_mode_names[] = {
static int pmcstat_sockpair[NSOCKPAIRFD];
-static void
+static void __dead2
usage(void)
{
errx(EX_USAGE,
@@ -127,8 +127,10 @@ showtime(FILE *out, struct timespec *before, struct timespec *after,
after->tv_sec -= before->tv_sec;
after->tv_nsec -= before->tv_nsec;
- if (after->tv_nsec < 0)
- after->tv_sec--, after->tv_nsec += 1000000000;
+ if (after->tv_nsec < 0) {
+ after->tv_sec--;
+ after->tv_nsec += 1000000000;
+ }
real = (after->tv_sec * 1000000000 + after->tv_nsec) / 1000;
user = ru->ru_utime.tv_sec * 1000000 + ru->ru_utime.tv_usec;