A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git]
/
examples
/
c
/
app-bittorrent
/
tracker.c
diff --git
a/examples/c/app-bittorrent/tracker.c
b/examples/c/app-bittorrent/tracker.c
index 340ac61afa50bd01cd405a2b4049999c659e4254..abed9ce267544bad533c2736c1b9a304e92aa222 100644
(file)
--- a/
examples/c/app-bittorrent/tracker.c
+++ b/
examples/c/app-bittorrent/tracker.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2012-202
1
. The SimGrid Team.
+/* Copyright (c) 2012-202
3
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-17,7
+17,7
@@
void tracker_answer_free(void* data)
{
tracker_answer_t a = (tracker_answer_t)data;
xbt_dynar_free(&a->peers);
{
tracker_answer_t a = (tracker_answer_t)data;
xbt_dynar_free(&a->peers);
- free(a);
+
xbt_
free(a);
}
static int is_in_list(const_xbt_dynar_t peers, int id)
}
static int is_in_list(const_xbt_dynar_t peers, int id)
@@
-25,7
+25,7
@@
static int is_in_list(const_xbt_dynar_t peers, int id)
return xbt_dynar_member(peers, &id);
}
return xbt_dynar_member(peers, &id);
}
-void tracker(int argc, char* argv[])
+void tracker
_run
(int argc, char* argv[])
{
// Checking arguments
xbt_assert(argc == 2, "Wrong number of arguments for the tracker.");
{
// Checking arguments
xbt_assert(argc == 2, "Wrong number of arguments for the tracker.");