diff options
Diffstat (limited to 'drv_Image.c')
-rw-r--r-- | drv_Image.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drv_Image.c b/drv_Image.c index eed1923..fb317b9 100644 --- a/drv_Image.c +++ b/drv_Image.c @@ -1,4 +1,4 @@ -/* $Id: drv_Image.c 728 2007-01-14 11:14:38Z michael $ +/* $Id: drv_Image.c 773 2007-02-25 12:39:09Z michael $ * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drv_Image.c $ * * new style Image (PPM/PNG) Driver for LCD4Linux @@ -114,14 +114,14 @@ static int drv_IMG_flush_PPM(void) if (bitbuf == NULL) { if ((bitbuf = malloc(xsize * ysize * sizeof(*bitbuf))) == NULL) { - error("%s: malloc(%d) failed: %s", Name, xsize * ysize * sizeof(*bitbuf), strerror(errno)); + error("%s: malloc(%d) failed: %s", Name, (int) xsize * ysize * sizeof(*bitbuf), strerror(errno)); return -1; } } if (rowbuf == NULL) { if ((rowbuf = malloc(3 * xsize * sizeof(*rowbuf))) == NULL) { - error("Raster: malloc(%d) failed: %s", 3 * xsize * sizeof(*rowbuf), strerror(errno)); + error("Raster: malloc(%d) failed: %s", (int) 3 * xsize * sizeof(*rowbuf), strerror(errno)); return -1; } } @@ -422,7 +422,7 @@ int drv_IMG_init(const char *section, const __attribute__ ((unused)) { int ret; - info("%s: %s", Name, "$Rev: 728 $"); + info("%s: %s", Name, "$Rev: 773 $"); /* real worker functions */ drv_generic_graphic_real_blit = drv_IMG_blit; @@ -461,8 +461,8 @@ int drv_IMG_quit(const __attribute__ ((unused)) DRIVER drv_Image = { - name:Name, - list:drv_IMG_list, - init:drv_IMG_init, - quit:drv_IMG_quit, + .name = Name, + .list = drv_IMG_list, + .init = drv_IMG_init, + .quit = drv_IMG_quit, }; |