From 7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 20 Jun 2004 10:09:56 +0000 Subject: [lcd4linux @ 2004-06-20 10:09:52 by reinelt] 'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_generic_graphic.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'drv_generic_graphic.c') diff --git a/drv_generic_graphic.c b/drv_generic_graphic.c index 1ca96e0..a571024 100644 --- a/drv_generic_graphic.c +++ b/drv_generic_graphic.c @@ -23,6 +23,10 @@ * * * $Log: drv_generic_graphic.c,v $ + * Revision 1.10 2004/06/20 10:09:55 reinelt + * + * 'const'ified the whole source + * * Revision 1.9 2004/06/09 06:40:29 reinelt * * splash screen for T6963 driver @@ -175,7 +179,7 @@ int drv_generic_graphic_clear (void) // *** generic text handling *** // **************************************** -static void drv_generic_graphic_render (int row, int col, unsigned char *txt) +static void drv_generic_graphic_render (const int row, const int col, const unsigned char *txt) { int c, r, x, y; int len = strlen(txt); @@ -206,7 +210,7 @@ static void drv_generic_graphic_render (int row, int col, unsigned char *txt) // say hello to the user -int drv_generic_graphic_greet (char *msg1, char *msg2) +int drv_generic_graphic_greet (const char *msg1, const char *msg2) { char *line1[] = { "* LCD4Linux " VERSION " *", "LCD4Linux " VERSION, @@ -393,10 +397,10 @@ int drv_generic_graphic_bar_draw (WIDGET *W) // *** generic init/quit *** // **************************************** -int drv_generic_graphic_init (char *section, char *driver) +int drv_generic_graphic_init (const char *section, const char *driver) { - Section=section; - Driver=driver; + Section = (char*)section; + Driver = (char*)driver; // init layout framebuffer LROWS = 0; -- cgit v1.2.3