char -> const char fixes.

This commit is contained in:
Rémi Assailly 2005-01-24 11:29:44 +00:00 committed by Alexandre Julliard
parent 74b0258691
commit 6063b542aa
4 changed files with 4 additions and 4 deletions

View File

@ -1627,7 +1627,7 @@ inline static void addline(int* lineNum, char* pgm, char* line)
strcat(pgm, "\n");
}
char* shift_tab[] = {
static const char* shift_tab[] = {
"dummy", /* 0 (none) */
"coefmul.x", /* 1 (x2) */
"coefmul.y", /* 2 (x4) */

View File

@ -195,7 +195,7 @@ HRESULT WINAPI DirectInputCreateW(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPU
return 0;
}
static char *_dump_DIDEVTYPE_value(DWORD dwDevType) {
static const char *_dump_DIDEVTYPE_value(DWORD dwDevType) {
switch (dwDevType) {
case 0: return "All devices";
case DIDEVTYPE_MOUSE: return "DIDEVTYPE_MOUSE";

View File

@ -304,7 +304,7 @@ static HRESULT setup_dinput_options(JoystickImpl * device)
int tokens = 0;
int axis = 0;
int pov = 0;
char *delim = ",";
const char *delim = ",";
char * ptr;
TRACE("\"%s\" = \"%s\"\n", device->name, buffer);

View File

@ -101,7 +101,7 @@ static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 )
}
/* return the string text of a given variant type */
char *vtstr(int x)
static const char *vtstr(int x)
{
switch(x) {
case 0: