diff options
author | maxim <maxim@FreeBSD.org> | 2008-01-12 20:57:19 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2008-01-12 20:57:19 +0000 |
commit | f4a836e9367be09adc3151dd306c224e92014f5a (patch) | |
tree | 00995599c749569872ecfd2c3765b634860c5813 | |
parent | 02be9380b7f0f329af36567a1f8d325e4b12a508 (diff) | |
download | FreeBSD-src-f4a836e9367be09adc3151dd306c224e92014f5a.zip FreeBSD-src-f4a836e9367be09adc3151dd306c224e92014f5a.tar.gz |
o Fix a typo. errx() -> err().
Submitted by: das
-rw-r--r-- | usr.sbin/iostat/iostat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index 2ed8049..43d297e 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -737,8 +737,8 @@ devstats(int perf_select, long double etime, int havelast) if (xflag > 0) { if (asprintf(&devname, "%s%d", cur.dinfo->devices[di].device_name, - cur.dinfo->devices[di].unit_number) == 1) - errx(1, "asprintf() failed (out of memory?)"); + cur.dinfo->devices[di].unit_number) == -1) + err(1, "asprintf"); /* * If zflag is set, skip any devices with zero I/O. */ |