From d29e6de16ad1cbbc5740e732268da9347b370a1d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 15 Nov 2010 08:56:18 +0100 Subject: Only add some functions when really needed The GNU C compiler gave warnings about some functions not being used. These functions where only used if certian #ifdef sections was enabled. This patch encapsulates these function declarations with matching #ifdef's to make it more clear when these functions are needed. Signed-off-by: David Sommerseth Acked-by: Peter Stuge --- reliable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'reliable.c') diff --git a/reliable.c b/reliable.c index a41f2bf..e68c236 100644 --- a/reliable.c +++ b/reliable.c @@ -516,6 +516,7 @@ reliable_can_send (const struct reliable *rel) return n_current > 0 && !rel->hold; } +#ifdef EXPONENTIAL_BACKOFF /* return a unique point-in-time to trigger retry */ static time_t reliable_unique_retry (struct reliable *rel, time_t retry) @@ -535,6 +536,7 @@ reliable_unique_retry (struct reliable *rel, time_t retry) } return retry; } +#endif /* return next buffer to send to remote */ struct buffer * -- cgit v1.2.3