xref: /OK3568_Linux_fs/buildroot/package/matchbox-panel/0003-mb-applet-battery.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1mb-applet-battery: don't declare line_parse as static
2
3Fix this build failure:
4    mb-applet-battery.c: In function 'read_apm':
5    mb-applet-battery.c:181:2: error: invalid storage class for function 'line_parse'
6
7Reported-by: Arnout Vandecappelle <arnout@mind.be>
8Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
9
10diff -durN matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c matchbox-panel-0.9.3/applets/mb-applet-battery.c
11--- matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c	2006-02-07 23:27:24.000000000 +0100
12+++ matchbox-panel-0.9.3/applets/mb-applet-battery.c	2015-05-02 17:13:00.843578796 +0200
13@@ -177,7 +177,7 @@
14 		unsigned long	present_rate;
15 	};
16
17-	static int
18+	int
19 	line_parse(char *line, struct entry *e)
20 	{
21 		char *ptr;
22