diff options
author | Robert Buchholz <rbu@gentoo.org> | 2007-06-04 18:13:56 +0000 |
---|---|---|
committer | Robert Buchholz <rbu@gentoo.org> | 2007-06-04 18:13:56 +0000 |
commit | 1d39860e8a6b78498bc051fb681052e98bb51ce9 (patch) | |
tree | 70208b683616dc13cb7520f41ecd0eddf7335098 /app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch | |
parent | stable x86, bug 176144 (diff) | |
download | gentoo-2-1d39860e8a6b78498bc051fb681052e98bb51ce9.tar.gz gentoo-2-1d39860e8a6b78498bc051fb681052e98bb51ce9.tar.bz2 gentoo-2-1d39860e8a6b78498bc051fb681052e98bb51ce9.zip |
Revbump introducing new luise driver (for amd64/x86 only), added ~ppc and fixed the plugin_mpd code
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch')
-rw-r--r-- | app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch new file mode 100644 index 000000000000..58791ee91ff7 --- /dev/null +++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch @@ -0,0 +1,64 @@ +Index: ./plugin_kvv.c +=================================================================== +--- ./plugin_kvv.c (revision 771) ++++ ./plugin_kvv.c (revision 797) +@@ -414,5 +414,5 @@ + + if (count > 0) { +- char *input, *cookie, *name, *value; ++ char *input, *cookie, *name = NULL, *value = NULL; + int input_len, cookie_len, name_len, value_len; + +Index: ./plugin_mpd.c +=================================================================== +--- ./plugin_mpd.c (revision 786) ++++ ./plugin_mpd.c (revision 797) +@@ -65,5 +65,10 @@ + int iport; + char *test; +- struct Pointer mpd; ++ ++ struct Pointer mpd = { ++ .conn = NULL, ++ .status = NULL, ++ .entity = NULL ++ }; + + if ((test = getenv("MPD_HOST"))) { +@@ -229,5 +234,6 @@ + #define _mpd_player_get_random 005 + +-void error_callback(MpdObj * mi, int errorid, char *msg, void *userdata) ++void error_callback( __attribute__ ((unused)) MpdObj * mi, int errorid, char *msg, __attribute__ ((unused)) ++ void *userdata) + { + printf("Error %i: '%s'\n", errorid, msg); +Index: ./drv_Image.c +=================================================================== +--- ./drv_Image.c (revision 771) ++++ ./drv_Image.c (revision 797) +@@ -115,5 +115,5 @@ + if (bitbuf == NULL) { + if ((bitbuf = malloc(xsize * ysize * sizeof(*bitbuf))) == NULL) { +- error("%s: malloc(%d) failed: %s", Name, (int) xsize * ysize * sizeof(*bitbuf), strerror(errno)); ++ error("%s: malloc() failed: %s", Name, strerror(errno)); + return -1; + } +@@ -122,5 +122,5 @@ + if (rowbuf == NULL) { + if ((rowbuf = malloc(3 * xsize * sizeof(*rowbuf))) == NULL) { +- error("Raster: malloc(%d) failed: %s", (int) 3 * xsize * sizeof(*rowbuf), strerror(errno)); ++ error("Raster: malloc() failed: %s", strerror(errno)); + return -1; + } +Index: ./plugin_i2c_sensors.c +=================================================================== +--- ./plugin_i2c_sensors.c (revision 771) ++++ ./plugin_i2c_sensors.c (revision 797) +@@ -297,5 +297,5 @@ + strcat(path_cfg, "/"); + } +- debug("using i2c sensors at %s (from %s)", path, cfg_source()); ++ debug("using i2c sensors at %s (from %s)", path_cfg, cfg_source()); + path = realloc(path, strlen(path_cfg) + 1); + strcpy(path, path_cfg); |