kdrive: Fix const cast warnings in arguments processing.
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
		
							parent
							
								
									7107937e47
								
							
						
					
					
						commit
						77c7a2014e
					
				|  | @ -45,7 +45,7 @@ extern KdPointerDriver LinuxEvdevMouseDriver; | |||
| extern KdKeyboardDriver LinuxEvdevKeyboardDriver; | ||||
| #endif | ||||
| 
 | ||||
| void processScreenArg(char *screen_size, char *parent_id); | ||||
| void processScreenArg(const char *screen_size, char *parent_id); | ||||
| 
 | ||||
| void | ||||
| InitCard(char *name) | ||||
|  | @ -134,7 +134,7 @@ ddxUseMsg(void) | |||
| } | ||||
| 
 | ||||
| void | ||||
| processScreenArg(char *screen_size, char *parent_id) | ||||
| processScreenArg(const char *screen_size, char *parent_id) | ||||
| { | ||||
|     KdCardInfo *card; | ||||
| 
 | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ | |||
| #endif | ||||
| #include "ephyr.h" | ||||
| 
 | ||||
| extern void processScreenArg(char *screen_size, char *parent_id); | ||||
| extern void processScreenArg(const char *screen_size, char *parent_id); | ||||
| 
 | ||||
| static int | ||||
| EphyrInit(void) | ||||
|  |  | |||
|  | @ -246,8 +246,8 @@ ddxGiveUp(enum ExitCode error) | |||
| Bool kdDumbDriver; | ||||
| Bool kdSoftCursor; | ||||
| 
 | ||||
| char * | ||||
| KdParseFindNext(char *cur, const char *delim, char *save, char *last) | ||||
| const char * | ||||
| KdParseFindNext(const char *cur, const char *delim, char *save, char *last) | ||||
| { | ||||
|     while (*cur && !strchr(delim, *cur)) { | ||||
|         *save++ = *cur++; | ||||
|  | @ -282,7 +282,7 @@ KdSubRotation(Rotation a, Rotation b) | |||
| } | ||||
| 
 | ||||
| void | ||||
| KdParseScreen(KdScreenInfo * screen, char *arg) | ||||
| KdParseScreen(KdScreenInfo * screen, const char *arg) | ||||
| { | ||||
|     char delim; | ||||
|     char save[1024]; | ||||
|  |  | |||
|  | @ -411,13 +411,14 @@ Rotation KdAddRotation(Rotation a, Rotation b); | |||
| Rotation KdSubRotation(Rotation a, Rotation b); | ||||
| 
 | ||||
| void | ||||
|  KdParseScreen(KdScreenInfo * screen, char *arg); | ||||
|  KdParseScreen(KdScreenInfo * screen, const char *arg); | ||||
| 
 | ||||
| KdPointerInfo *KdParsePointer(char *arg); | ||||
| KdPointerInfo *KdParsePointer(const char *arg); | ||||
| 
 | ||||
| KdKeyboardInfo *KdParseKeyboard(char *arg); | ||||
| KdKeyboardInfo *KdParseKeyboard(const char *arg); | ||||
| 
 | ||||
| char *KdParseFindNext(char *cur, const char *delim, char *save, char *last); | ||||
| const char * | ||||
| KdParseFindNext(const char *cur, const char *delim, char *save, char *last); | ||||
| 
 | ||||
| void | ||||
|  KdParseRgba(char *rgba); | ||||
|  |  | |||
|  | @ -1086,7 +1086,7 @@ KdParseKbdOptions(KdKeyboardInfo * ki) | |||
| } | ||||
| 
 | ||||
| KdKeyboardInfo * | ||||
| KdParseKeyboard(char *arg) | ||||
| KdParseKeyboard(const char *arg) | ||||
| { | ||||
|     char save[1024]; | ||||
|     char delim; | ||||
|  | @ -1178,7 +1178,7 @@ KdParsePointerOptions(KdPointerInfo * pi) | |||
| } | ||||
| 
 | ||||
| KdPointerInfo * | ||||
| KdParsePointer(char *arg) | ||||
| KdParsePointer(const char *arg) | ||||
| { | ||||
|     char save[1024]; | ||||
|     char delim; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue