wok-stable diff lxpanel/stuff/battery-plugin.patch @ rev 6912

Added xorg-libfontenc to xorg-libfontenc-dev depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 21 20:57:17 2010 +0000 (2010-10-21)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lxpanel/stuff/battery-plugin.patch	Thu Oct 21 20:57:17 2010 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +--- a/src/plugins/batt/batt.c	2010-02-08 07:37:52.000000000 +0100
     1.5 ++++ b/src/plugins/batt/batt.c	2010-09-27 02:24:22.781006054 +0200
     1.6 +@@ -95,7 +95,7 @@
     1.7 + typedef struct {
     1.8 +     char *command;
     1.9 +     sem_t *lock;
    1.10 +-} alarm;
    1.11 ++} Alarm;
    1.12 + 
    1.13 + static void destructor(Plugin *p);
    1.14 + static void update_display(lx_battery *lx_b, gboolean repaint);
    1.15 +@@ -103,7 +103,7 @@
    1.16 + /* alarmProcess takes the address of a dynamically allocated alarm struct (which
    1.17 +    it must free). It ensures that alarm commands do not run concurrently. */
    1.18 + static void * alarmProcess(void *arg) {
    1.19 +-    alarm *a = (alarm *) arg;
    1.20 ++    Alarm *a = (Alarm *) arg;
    1.21 + 
    1.22 +     sem_wait(a->lock);
    1.23 +     system(a->command);
    1.24 +@@ -157,7 +157,7 @@
    1.25 + 	/* Run the alarm command if it isn't already running */
    1.26 + 	if (alarmCanRun) {
    1.27 + 	    
    1.28 +-	    alarm *a = (alarm *) malloc(sizeof(alarm));
    1.29 ++	    Alarm *a = (Alarm *) malloc(sizeof(alarm));
    1.30 + 	    a->command = lx_b->alarmCommand;
    1.31 + 	    a->lock = &(lx_b->alarmProcessLock);
    1.32 +