summaryrefslogtreecommitdiff
blob: 58791ee91ff705be666a6f7879f9e03c3963d224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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);