Blame SOURCES/autofs-5.0.7-remove-debug-only-code-in-alarm-c.patch

306fa1
autofs-5.0.7 - remove debug only code in alarm.c
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
This code is only ever used for "on-the-fly" debugging so just remove it.
306fa1
---
306fa1
 lib/alarm.c |   16 ----------------
306fa1
 1 file changed, 16 deletions(-)
306fa1
306fa1
diff --git a/lib/alarm.c b/lib/alarm.c
306fa1
index d5cdc05..0f04ef8 100755
306fa1
--- a/lib/alarm.c
306fa1
+++ b/lib/alarm.c
306fa1
@@ -40,22 +40,6 @@ do { \
306fa1
 		fatal(_alm_unlock); \
306fa1
 } while (0)
306fa1
 
306fa1
-void dump_alarms(void)
306fa1
-{
306fa1
-	struct list_head *head;
306fa1
-	struct list_head *p;
306fa1
-
306fa1
-	pthread_mutex_lock(&mutex);
306fa1
-	head = &alarms;
306fa1
-	list_for_each(p, head) {
306fa1
-		struct alarm *this;
306fa1
-
306fa1
-		this = list_entry(p, struct alarm, list);
306fa1
-		logmsg("alarm time = %d", this->time);
306fa1
-	}
306fa1
-	pthread_mutex_unlock(&mutex);
306fa1
-}
306fa1
-
306fa1
 /* Insert alarm entry on ordered list. */
306fa1
 int alarm_add(struct autofs_point *ap, time_t seconds)
306fa1
 {