summaryrefslogtreecommitdiffstats
path: root/bin/df
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-05-01 16:02:44 +0000
committerache <ache@FreeBSD.org>2007-05-01 16:02:44 +0000
commit6ccaf050cc62bc9d81ac3acb71ce640739caa0f7 (patch)
treee3e0b3658b8df3a905b3117d8535bb15f42c9e80 /bin/df
parent61e9800ad7707590037d6868c703475f36cf7058 (diff)
downloadFreeBSD-src-6ccaf050cc62bc9d81ac3acb71ce640739caa0f7.zip
FreeBSD-src-6ccaf050cc62bc9d81ac3acb71ce640739caa0f7.tar.gz
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
Diffstat (limited to 'bin/df')
-rw-r--r--bin/df/df.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 0350d98..5420da9 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -131,14 +131,14 @@ main(int argc, char *argv[])
*/
if (kflag)
break;
- putenv(strdup("BLOCKSIZE=512"));
+ putenv("BLOCKSIZE=512");
hflag = 0;
break;
case 'c':
cflag = 1;
break;
case 'g':
- putenv(strdup("BLOCKSIZE=1g"));
+ putenv("BLOCKSIZE=1g");
hflag = 0;
break;
case 'H':
@@ -152,7 +152,7 @@ main(int argc, char *argv[])
break;
case 'k':
kflag++;
- putenv(strdup("BLOCKSIZE=1024"));
+ putenv("BLOCKSIZE=1024");
hflag = 0;
break;
case 'l':
@@ -162,7 +162,7 @@ main(int argc, char *argv[])
lflag = 1;
break;
case 'm':
- putenv(strdup("BLOCKSIZE=1m"));
+ putenv("BLOCKSIZE=1m");
hflag = 0;
break;
case 'n':
OpenPOWER on IntegriCloud