From e295e46e3eccd58626ce2b02aab24b96c025636b Mon Sep 17 00:00:00 2001 From: darkvater Date: Sun, 12 Sep 2004 21:49:38 +0000 Subject: (svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks --- ttd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ttd.c') diff --git a/ttd.c b/ttd.c index a60fbf76f..c7d792307 100644 --- a/ttd.c +++ b/ttd.c @@ -279,10 +279,10 @@ void LoadDriver(int driver, const char *name) error("No such %s driver: %s\n", dc->name, buffer); } var = dc->var; - if (*var != NULL) ((HalCommonDriver*)*var)->stop(); + if (*var != NULL) ((const HalCommonDriver*)*var)->stop(); *var = NULL; drv = dd->drv; - if ((err=((HalCommonDriver*)drv)->start(parms)) != NULL) + if ((err=((const HalCommonDriver*)drv)->start(parms)) != NULL) error("Unable to load driver %s(%s). The error was: %s\n", dd->name, dd->longname, err); *var = drv; } -- cgit v1.2.3-54-g00ecf