From 00696e04ec2353e0fba903cb1844929153341faa Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=9Fingen?= Date: Tue, 21 Mar 2017 12:44:10 +0100 Subject: [PATCH] ldpd: Fix compilation errors n Ubuntu CI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: ßingen --- ldpd/lde.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ldpd/lde.c b/ldpd/lde.c index 53a9be6ae6..1b444bfe8a 100644 --- a/ldpd/lde.c +++ b/ldpd/lde.c @@ -116,9 +116,8 @@ static struct quagga_signal_t lde_signals[] = }; static void -lde_sleep (const char *message) +lde_sleep (void) { - fprintf (stderr, message); sleep(1); if (lde_signals[0].caught || lde_signals[1].caught) lde_shutdown(); @@ -134,12 +133,14 @@ zclient_sync_init(u_short instance) zclient_sync->redist_default = ZEBRA_ROUTE_LDP; zclient_sync->instance = instance; while (zclient_socket_connect (zclient_sync) < 0) { - lde_sleep("Error connecting synchronous zclient!\n"); + fprintf(stderr, "Error connecting synchronous zclient!\n"); + lde_sleep(); } /* Connect to label manager */ while (lm_label_manager_connect (zclient_sync) != 0) { - lde_sleep("Error connecting to label manager!\n"); + fprintf(stderr, "Error connecting to label manager!\n"); + lde_sleep(); } } @@ -1606,7 +1607,8 @@ lde_label_list_init(void) /* get first chunk */ while (lde_get_label_chunk () != 0) { - lde_sleep("Error getting first label chunk!\n"); + fprintf(stderr, "Error getting first label chunk!\n"); + lde_sleep(); } } -- 2.39.5