0003-mb-applet-battery.patch 758 B

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