patch-src_plugins_batt_batt_c 1.1 KB

1234567891011121314151617181920212223242526272829
  1. --- lxpanel-0.5.6.orig/src/plugins/batt/batt.c 2010-02-08 07:37:52.000000000 +0100
  2. +++ lxpanel-0.5.6/src/plugins/batt/batt.c 2011-04-14 22:05:34.617672290 +0200
  3. @@ -95,7 +95,7 @@ typedef struct {
  4. typedef struct {
  5. char *command;
  6. sem_t *lock;
  7. -} alarm;
  8. +} alarms;
  9. static void destructor(Plugin *p);
  10. static void update_display(lx_battery *lx_b, gboolean repaint);
  11. @@ -103,7 +103,7 @@ static void update_display(lx_battery *l
  12. /* alarmProcess takes the address of a dynamically allocated alarm struct (which
  13. it must free). It ensures that alarm commands do not run concurrently. */
  14. static void * alarmProcess(void *arg) {
  15. - alarm *a = (alarm *) arg;
  16. + alarms *a = (alarms *) arg;
  17. sem_wait(a->lock);
  18. system(a->command);
  19. @@ -157,7 +157,7 @@ void update_display(lx_battery *lx_b, gb
  20. /* Run the alarm command if it isn't already running */
  21. if (alarmCanRun) {
  22. - alarm *a = (alarm *) malloc(sizeof(alarm));
  23. + alarms *a = (alarms *) malloc(sizeof(alarms));
  24. a->command = lx_b->alarmCommand;
  25. a->lock = &(lx_b->alarmProcessLock);