summaryrefslogtreecommitdiff
path: root/dedicated.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-05 18:05:42 +0000
committertron <tron@openttd.org>2005-02-05 18:05:42 +0000
commit17ca2c49a538eb4896e0b6e6ff24d12e6915ede2 (patch)
treef89ba1ea60d31b2d81001fc7f60d31bc9bac8360 /dedicated.c
parent7278f72157d834da45a3b7986128ea865c1b8ddc (diff)
downloadopenttd-17ca2c49a538eb4896e0b6e6ff24d12e6915ede2.tar.xz
(svn r1805) Teach the driver layer a few things about const correctness
Diffstat (limited to 'dedicated.c')
-rw-r--r--dedicated.c6
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;