* environ.cc (enum settings): Add setbool. Rename justset to setdword

to avoid future problems.
	(struct parse_thing): Change all justset to setbool for bool variables.
	(parse_options): Add a case for setbool setting for bool variables
	since justset (now setdword) always writes a DWORD value, thus
	potentially overwriting adjacent memory locations.
	* external.cc (cygwin_internal): Drop extern declaration.
This commit is contained in:
Corinna Vinschen
2012-02-26 15:47:43 +00:00
parent b0af77452c
commit 97ad248f0c
3 changed files with 26 additions and 9 deletions

View File

@@ -432,7 +432,6 @@ cygwin_internal (cygwin_getinfo_types t, ...)
break;
case CW_SET_DOS_FILE_WARNING:
{
extern bool dos_file_warning;
dos_file_warning = va_arg (arg, int);
res = 0;
}