From 75a33a1499cf60ea4364c9aa673816629a6c1413 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 5 Nov 2010 18:21:50 +0000 Subject: big scheduler refactoring, expect some issues --- src/peerinfo-tool/gnunet-peerinfo.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/peerinfo-tool') diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 28f2284ce..1963d6a98 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c @@ -37,8 +37,6 @@ static int be_quiet; static int get_self; -static struct GNUNET_SCHEDULER_Handle *sched; - static struct GNUNET_PEERINFO_Handle *peerinfo; static const struct GNUNET_CONFIGURATION_Handle *cfg; @@ -139,8 +137,7 @@ print_address (void *cls, const void *addr, uint16_t addrlen) { struct PrintContext *pc = cls; - GNUNET_TRANSPORT_address_lookup (sched, - cfg, + GNUNET_TRANSPORT_address_lookup (cfg, addr, addrlen, no_resolve, @@ -194,14 +191,12 @@ print_peer_info (void *cls, * Main function that will be run by the scheduler. * * @param cls closure - * @param s the scheduler to use * @param args remaining command-line arguments * @param cfgfile name of the configuration file used (for saving, can be NULL!) * @param c configuration */ static void run (void *cls, - struct GNUNET_SCHEDULER_Handle *s, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c) @@ -212,7 +207,6 @@ run (void *cls, struct GNUNET_CRYPTO_HashAsciiEncoded enc; char *fn; - sched = s; cfg = c; if (args[0] != NULL) { @@ -223,7 +217,7 @@ run (void *cls, } if (get_self != GNUNET_YES) { - peerinfo = GNUNET_PEERINFO_connect (sched, cfg); + peerinfo = GNUNET_PEERINFO_connect (cfg); if (peerinfo == NULL) { fprintf (stderr, -- cgit v1.2.3