*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters
from ancient history. Among other things, these break patchwork's
XML-RPC API because \xC is not a valid character in XML documents.
Nuke them from high orbit.
Patches can be adapted simply by:
sed -e 's%^L%%' -i filename.patch
(you can type page feeds in some environments with Ctrl-V Ctrl-L)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/lib/thread.c b/lib/thread.c
index e2a37b1..468edd9 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -45,7 +45,7 @@
#include <mach/mach_time.h>
#endif
-
+
/* Recent absolute time of day */
struct timeval recent_time;
static struct timeval last_recent_time;
@@ -54,9 +54,9 @@
static struct timeval relative_time_base;
/* init flag */
static unsigned short timers_inited;
-
+
static struct hash *cpu_record = NULL;
-
+
/* Struct timeval's tv_usec one second value. */
#define TIMER_SECOND_MICRO 1000000L
@@ -108,7 +108,7 @@
return (((a.tv_sec - b.tv_sec) * TIMER_SECOND_MICRO)
+ (a.tv_usec - b.tv_usec));
}
-
+
#if !defined(HAVE_CLOCK_MONOTONIC) && !defined(__APPLE__)
static void
quagga_gettimeofday_relative_adjust (void)
@@ -247,7 +247,7 @@
{
return relative_time;
}
-
+
static unsigned int
cpu_record_hash_key (struct cpu_thread_history *a)
{
@@ -496,7 +496,7 @@
cpu_record_clear (filter);
return CMD_SUCCESS;
}
-
+
static int
thread_timer_cmp(void *a, void *b)
{