X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9cc88bb9ed0a8974e524f67198984a1e03cb00b0..71a5eb97d50eadd3edf7623d21dd3c1c4e235971:/examples/msg/kademlia/common.h diff --git a/examples/msg/kademlia/common.h b/examples/msg/kademlia/common.h index 3245f2ab7b..14770e2b40 100644 --- a/examples/msg/kademlia/common.h +++ b/examples/msg/kademlia/common.h @@ -1,8 +1,9 @@ -/* Copyright (c) 2012. The SimGrid Team. +/* Copyright (c) 2012, 2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ + #ifndef _KADEMLIA_EXAMPLES_COMMON #define _KADEMLIA_EXAMPLES_COMMON #define max_join_trials 4 @@ -10,7 +11,7 @@ #define RECEIVE_TIMEOUT 1 #define ping_timeout 55 -#define find_node_timeout 10; +#define find_node_timeout 10 #define find_node_global_timeout 50 #define kademlia_alpha 3 @@ -21,8 +22,7 @@ #define random_lookup_interval 100 -#define MAILBOX_NAME_SIZE identifier_size / 4 + 1 -#define IDENTIFIER_HEX_SIZE identifier_size / 4 + 1 +#define MAILBOX_NAME_SIZE (identifier_size / 4) /* hex encoded */ #define COMM_SIZE 1 #define COMP_SIZE 0 @@ -34,4 +34,4 @@ #define RANDOM_LOOKUP_NODE 0 -#endif /* _KADEMLIA_EXAMPLES_COMMON */ +#endif /* _KADEMLIA_EXAMPLES_COMMON */