summaryrefslogtreecommitdiffstats
path: root/usr.bin/du/du.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-11-08 01:24:31 +0000
committerkevlo <kevlo@FreeBSD.org>2007-11-08 01:24:31 +0000
commitcb1577dadc2f08da5e9adfd6c949861a1a83af45 (patch)
tree1b2790751b25028ad5144bf6f91b289ac0d55ae0 /usr.bin/du/du.c
parente70726e1e87e820c72e5e459e9aeca98a1b25ace (diff)
downloadFreeBSD-src-cb1577dadc2f08da5e9adfd6c949861a1a83af45.zip
FreeBSD-src-cb1577dadc2f08da5e9adfd6c949861a1a83af45.tar.gz
setenv(3) sets errno on failure, use warn() instead
Pointed out by: ru
Diffstat (limited to 'usr.bin/du/du.c')
-rw-r--r--usr.bin/du/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 17da719..ba369f9 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -141,19 +141,19 @@ main(int argc, char *argv[])
break;
case 'h':
if (setenv("BLOCKSIZE", "512", 1) == -1)
- warnx(
+ warn(
"setenv: cannot set BLOCKSIZE=512");
hflag = 1;
break;
case 'k':
hflag = 0;
if (setenv("BLOCKSIZE", "1024", 1) == -1)
- warnx("setenv: cannot set BLOCKSIZE=1024");
+ warn("setenv: cannot set BLOCKSIZE=1024");
break;
case 'm':
hflag = 0;
if (setenv("BLOCKSIZE", "1048576", 1) == -1)
- warnx("setenv: cannot set BLOCKSIZE=1048576");
+ warn("setenv: cannot set BLOCKSIZE=1048576");
break;
case 'n':
nodumpflag = 1;
OpenPOWER on IntegriCloud