diff options
author | imp <imp@FreeBSD.org> | 2006-12-10 06:36:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-12-10 06:36:41 +0000 |
commit | 9e691e8708e184ae2eecdf61f614b92c7755a89e (patch) | |
tree | fc43d9a38425b1ca99d04f67bae1ca1841042012 /sbin/sysctl | |
parent | 4069a35e15ccfd70be7b3460279b94021e83feea (diff) | |
download | FreeBSD-src-9e691e8708e184ae2eecdf61f614b92c7755a89e.zip FreeBSD-src-9e691e8708e184ae2eecdf61f614b92c7755a89e.tar.gz |
Style: Shorten a couple of lines with u_int and u_long.
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 3ee5658..d0fbc10 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -618,8 +618,7 @@ show_var(int *oid, int nlen) while (len >= sizeof(int)) { fputs(val, stdout); if (*fmt == 'U') - printf(hflag ? "%'u" : "%u", - *(unsigned int *)p); + printf(hflag ? "%'u" : "%u", *(u_int *)p); else if (*fmt == 'X') printf(hflag ? "%'#010x" : "%#010x", *(unsigned int *)p); @@ -646,11 +645,10 @@ show_var(int *oid, int nlen) while (len >= sizeof(long)) { fputs(val, stdout); if (*fmt == 'U') - printf(hflag ? "%'lu" : "%lu", - *(unsigned long *)p); + printf(hflag ? "%'lu" : "%lu", *(u_long *)p); else if (*fmt == 'X') printf(hflag ? "%'#018lx" : "%#018lx", - *(unsigned long *)p); + *(u_long *)p); else if (*fmt == 'K') { if (*(long *)p < 0) printf("%ld", *(long *)p); |