From: Christian Grothoff Date: Sat, 16 Jul 2011 19:43:06 +0000 (+0000) Subject: dce X-Git-Tag: initial-import-from-subversion-38251~17805 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cd8be50a9fd5a9bfa269e3e02d28ffc58c263375;p=oweals%2Fgnunet.git dce --- diff --git a/src/transport/test_transport_ats.c b/src/transport/test_transport_ats.c index 549a3a863..3da824c47 100644 --- a/src/transport/test_transport_ats.c +++ b/src/transport/test_transport_ats.c @@ -27,19 +27,23 @@ #define VERBOSE GNUNET_YES +#if HAVE_LIBGLPK + struct GNUNET_CONFIGURATION_Handle *cfg; static struct ATS_Handle * ats; -void ats_result_cb () +static void +ats_result_cb () { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ATS Result callback\n"); } -void create_ats_information (struct ATS_peer **p, int * c_p, - struct ATS_mechanism ** m, int * c_m) +static void +create_ats_information (struct ATS_peer **p, int * c_p, + struct ATS_mechanism ** m, int * c_m) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ATS needs addresses\n"); @@ -47,7 +51,8 @@ void create_ats_information (struct ATS_peer **p, int * c_p, (*c_p) = 10; } -int run_ats (void) +static int +run_ats () { int ret = 0; @@ -58,7 +63,8 @@ int run_ats (void) return ret; } -int init_ats (void) +static int +init_ats () { int ret = 0; @@ -73,7 +79,8 @@ int init_ats (void) } -int shutdown_ats (void) +static int +shutdown_ats () { int ret = 0; @@ -85,7 +92,8 @@ int shutdown_ats (void) } /* To make compiler happy */ -void dummy(void) +static void +dummy() { struct ATS_quality_metric * q = qm; q = NULL; @@ -93,6 +101,8 @@ void dummy(void) r = NULL; } +#endif + int main (int argc, char *argv[]) { @@ -112,7 +122,7 @@ main (int argc, char *argv[]) #if !HAVE_LIBGLPK return ret; -#endif +#else cfg = GNUNET_CONFIGURATION_create(); @@ -127,7 +137,7 @@ main (int argc, char *argv[]) /* Shutdown */ GNUNET_CONFIGURATION_destroy(cfg); return ret; - +#endif } /* end of test_transport_ats.c*/