aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1999-11-27 17:03:07 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1999-11-27 17:03:07 +0000
commit7c0e6e50e13883bbe152fb390f14316abeb7f149 (patch)
treec004f5a8761fb901038eb12f995e05ba7a1b7d43 /usr.sbin/pstat
parent541c4ca06d39b766d7eb1e5f84dedaec82a2b0df (diff)
downloadsrc-7c0e6e50e13883bbe152fb390f14316abeb7f149.tar.gz
src-7c0e6e50e13883bbe152fb390f14316abeb7f149.zip
Merge fprintf and exit into errx.
Use .Ev for environment variable.
Notes
Notes: svn path=/head/; revision=53762
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.87
-rw-r--r--usr.sbin/pstat/pstat.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pstat/pstat.8 b/usr.sbin/pstat/pstat.8
index 1821d6a6e1b9..939d9228283b 100644
--- a/usr.sbin/pstat/pstat.8
+++ b/usr.sbin/pstat/pstat.8
@@ -77,7 +77,8 @@ The following options are available:
.It Fl n
Print devices out by major/minor instead of name.
.It Fl k
-Print sizes in kilobytes, regardless of the setting of the BLOCKSIZE
+Print sizes in kilobytes, regardless of the setting of the
+.Ev BLOCKSIZE
environment variable.
.It Fl T
Print the number of used and free slots in the several system tables
@@ -382,7 +383,9 @@ default source of tables
.Ra K. Thompson
.Re
.Sh BUGS
-Does not understand NFS swap servers.
+Does not understand
+.Tn NFS
+swap servers.
.Sh HISTORY
The
.Nm pstat
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 24fb15716bd0..e506d3087d65 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -270,8 +270,7 @@ main(argc, argv)
break;
case 'v':
case 'i': /* Backward compatibility. */
- fprintf(stderr, "vnode mode not supported\n");
- exit(1);
+ errx(1, "vnode mode not supported");
#if 0
vnodeflag = 1;
break;