(svn r1805) Teach the driver layer a few things about const correctness

This commit is contained in:
tron
2005-02-05 18:05:42 +00:00
parent 7278f72157
commit 17ca2c49a5
9 changed files with 36 additions and 33 deletions

View File

@@ -128,7 +128,8 @@ void CloseWindowsConsoleThread(void)
#endif
static const char *DedicatedVideoStart(char **parm) {
static const char *DedicatedVideoStart(const char * const *parm)
{
_screen.width = _screen.pitch = _cur_resolution[0];
_screen.height = _cur_resolution[1];
_dedicated_video_mem = malloc(_cur_resolution[0]*_cur_resolution[1]);
@@ -306,7 +307,8 @@ const HalVideoDriver _dedicated_video_driver = {
static void *_dedicated_video_mem;
static const char *DedicatedVideoStart(char **parm) {
static const char *DedicatedVideoStart(const char **parm)
{
DEBUG(misc,0)("OpenTTD compiled without network-support, quiting...");
return NULL;