Merge pull request #28 from xoddark/Werror_write-strings

Fix write-strings warning
This commit is contained in:
Timothee "TTimo" Besset
2011-12-25 08:47:27 -08:00
12 changed files with 18 additions and 18 deletions

View File

@@ -129,7 +129,7 @@ typedef enum {
// punctuation
typedef struct punctuation_s
{
char *p; // punctuation character(s)
const char *p; // punctuation character(s)
int n; // punctuation id
} punctuation_t;

View File

@@ -625,7 +625,7 @@ void idParser::AddBuiltinDefines( void ) {
define_t *define;
struct builtin
{
char *string;
const char *string;
int id;
} builtin[] = {
{ "__LINE__", BUILTIN_LINE },

View File

@@ -312,7 +312,7 @@ TIME_TYPE time_in_millisec( void ) {
PrintClocks
============
*/
void PrintClocks( char *string, int dataCount, int clocks, int otherClocks = 0 ) {
void PrintClocks( const char *string, int dataCount, int clocks, int otherClocks = 0 ) {
int i;
idLib::common->Printf( string );