diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-15 08:56:18 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-18 18:54:49 +0100 |
commit | d29e6de16ad1cbbc5740e732268da9347b370a1d (patch) | |
tree | 58afabcd4a50d0f9b4ea27624be2c01c93b47bbb /reliable.c | |
parent | 33ee747fff4acb4ea4c143089aa2c596a1e4d0bd (diff) | |
download | openvpn-d29e6de16ad1cbbc5740e732268da9347b370a1d.tar.gz openvpn-d29e6de16ad1cbbc5740e732268da9347b370a1d.tar.xz openvpn-d29e6de16ad1cbbc5740e732268da9347b370a1d.zip |
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 <dazo@users.sourceforge.net>
Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'reliable.c')
-rw-r--r-- | reliable.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 * |