Fix Wwrite-strings warnings in sys/win32

deprecated conversion from string constant to ‘char*’
This commit is contained in:
dhewg 2011-12-14 03:22:03 +01:00
parent 3e25cc751a
commit b2ccf9240c
2 changed files with 4 additions and 4 deletions

View file

@ -625,7 +625,7 @@ int Sys_GetCPUId( void ) {
*/ */
typedef struct bitFlag_s { typedef struct bitFlag_s {
char * name; const char *name;
int bit; int bit;
} bitFlag_t; } bitFlag_t;
@ -641,13 +641,13 @@ static bitFlag_t controlWordFlags[] = {
{ "Infinity control", 12 }, { "Infinity control", 12 },
{ "", 0 } { "", 0 }
}; };
static char *precisionControlField[] = { static const char *precisionControlField[] = {
"Single Precision (24-bits)", "Single Precision (24-bits)",
"Reserved", "Reserved",
"Double Precision (53-bits)", "Double Precision (53-bits)",
"Double Extended Precision (64-bits)" "Double Extended Precision (64-bits)"
}; };
static char *roundingControlField[] = { static const char *roundingControlField[] = {
"Round to nearest", "Round to nearest",
"Round down", "Round down",
"Round up", "Round up",

View file

@ -72,7 +72,7 @@ net_interface netint[MAX_INTERFACES];
NET_ErrorString NET_ErrorString
==================== ====================
*/ */
char *NET_ErrorString( void ) { const char *NET_ErrorString( void ) {
int code; int code;
code = WSAGetLastError(); code = WSAGetLastError();