diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 04:29:17 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 04:29:17 +0000 |
commit | 7c450364bc463830b4bdb1716b54958d9c680666 (patch) | |
tree | cbcc988ca9692e5351d21a9fafd311d3d1a74ee9 /bin | |
parent | 00f8652278afd11c4f911ca324230f55f92b2fd9 (diff) | |
download | src-7c450364bc463830b4bdb1716b54958d9c680666.tar.gz src-7c450364bc463830b4bdb1716b54958d9c680666.zip |
Eliminate error with -W* strict flags and make putenv() calls conforming to
standard in the same way as f.e. gcc internal portable code does.
Notes
Notes:
svn path=/head/; revision=169112
Diffstat (limited to 'bin')
-rw-r--r-- | bin/df/df.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 5420da92500e..0350d986331b 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -131,14 +131,14 @@ main(int argc, char *argv[]) */ if (kflag) break; - putenv("BLOCKSIZE=512"); + putenv(strdup("BLOCKSIZE=512")); hflag = 0; break; case 'c': cflag = 1; break; case 'g': - putenv("BLOCKSIZE=1g"); + putenv(strdup("BLOCKSIZE=1g")); hflag = 0; break; case 'H': @@ -152,7 +152,7 @@ main(int argc, char *argv[]) break; case 'k': kflag++; - putenv("BLOCKSIZE=1024"); + putenv(strdup("BLOCKSIZE=1024")); hflag = 0; break; case 'l': @@ -162,7 +162,7 @@ main(int argc, char *argv[]) lflag = 1; break; case 'm': - putenv("BLOCKSIZE=1m"); + putenv(strdup("BLOCKSIZE=1m")); hflag = 0; break; case 'n': |