diff options
author | tron <tron@openttd.org> | 2005-02-05 18:05:42 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-05 18:05:42 +0000 |
commit | 7cac482a73917e4cfc00a9288d2fb72756353271 (patch) | |
tree | f89ba1ea60d31b2d81001fc7f60d31bc9bac8360 /dedicated.c | |
parent | 16837cfd9453b292150b44bd8a56c080c4813ab1 (diff) | |
download | openttd-7cac482a73917e4cfc00a9288d2fb72756353271.tar.xz |
(svn r1805) Teach the driver layer a few things about const correctness
Diffstat (limited to 'dedicated.c')
-rw-r--r-- | dedicated.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dedicated.c b/dedicated.c index 9ee6f4da1..608b0f429 100644 --- a/dedicated.c +++ b/dedicated.c @@ -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; |