mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value'
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
12
drv_Image.c
12
drv_Image.c
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user