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

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