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

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