Changeset 89fe67e
- Timestamp:
- Jun 11, 2011, 6:31:32 PM (13 years ago)
- Children:
- b9d22f7
- Parents:
- 6dc3757
- git-author:
- David Benjamin <davidben@mit.edu> (05/23/11 23:50:21)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/11/11 18:31:32)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r4c7c21f r89fe67e 495 495 int owl_variable_pseudologins_set(owl_variable *v, const void *newval) 496 496 { 497 static owl_timer *timer = NULL;497 static guint timer = 0; 498 498 if (newval) { 499 499 if (*(const int*)newval == 1) { 500 500 owl_function_zephyr_buddy_check(0); 501 if (timer == NULL) { 502 timer = owl_select_add_timer("owl_zephyr_buddycheck_timer", 503 180, 180, owl_zephyr_buddycheck_timer, NULL, NULL); 501 if (timer == 0) { 502 timer = g_timeout_add_seconds(180, owl_zephyr_buddycheck_timer, NULL); 504 503 } 505 504 } else { 506 if (timer != NULL) {507 owl_select_remove_timer(timer);508 timer = NULL;505 if (timer != 0) { 506 g_source_remove(timer); 507 timer = 0; 509 508 } 510 509 } -
zephyr.c
rb848e30 r89fe67e 1432 1432 #endif 1433 1433 1434 void owl_zephyr_buddycheck_timer(owl_timer *t,void *data)1434 gboolean owl_zephyr_buddycheck_timer(void *data) 1435 1435 { 1436 1436 if (owl_global_is_pseudologins(&g)) { … … 1440 1440 owl_function_debugmsg("Warning: owl_zephyr_buddycheck_timer call pointless; timer should have been disabled"); 1441 1441 } 1442 return TRUE; 1442 1443 } 1443 1444
Note: See TracChangeset
for help on using the changeset viewer.