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.
This commit is contained in:
Andrey A. Chernov 2007-04-30 04:29:17 +00:00
parent 00f8652278
commit 7c450364bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169112

View File

@ -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':