summaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-05 18:21:50 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-05 18:21:50 +0000
commit75a33a1499cf60ea4364c9aa673816629a6c1413 (patch)
tree0620da4312bb04de4d7b65074fdd3b0c3dd6cc0e /src/peerinfo-tool
parent7217c601ad30760872823193d62307e7a335d226 (diff)
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c10
1 files changed, 2 insertions, 8 deletions
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,