From: Martin Quinson Date: Tue, 8 May 2018 18:10:07 +0000 (+0200) Subject: 'not' is not a C keyword (C++ only) -- bummer X-Git-Tag: v3.20~267^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fbba32bb0526857d6da05d6e6604bde84fc85321 'not' is not a C keyword (C++ only) -- bummer --- diff --git a/examples/msg/dht-pastry/dht-pastry.c b/examples/msg/dht-pastry/dht-pastry.c index 0cf0155b06..ad21a404f9 100644 --- a/examples/msg/dht-pastry/dht-pastry.c +++ b/examples/msg/dht-pastry/dht-pastry.c @@ -312,7 +312,7 @@ static void handle_task(node_t node, msg_task_t task) { // if the node is ready, do all the pending tasks and send update to known nodes if (node->ready==0) { XBT_DEBUG("Node %i is ready!!!", node->id); - while (not xbt_dynar_is_empty(node->pending_tasks)) { + while (!xbt_dynar_is_empty(node->pending_tasks)) { msg_task_t task; xbt_dynar_shift(node->pending_tasks, &task); handle_task(node, task); diff --git a/teshsuite/msg/app-bittorrent/bittorrent-peer.c b/teshsuite/msg/app-bittorrent/bittorrent-peer.c index 69818a5ead..700d920c3a 100644 --- a/teshsuite/msg/app-bittorrent/bittorrent-peer.c +++ b/teshsuite/msg/app-bittorrent/bittorrent-peer.c @@ -591,7 +591,7 @@ void update_choked_peers(peer_t peer) // remove a peer from the list xbt_dict_cursor_t cursor = NULL; xbt_dict_cursor_first(peer->active_peers, &cursor); - if (not xbt_dict_is_empty(peer->active_peers)) { + if (!xbt_dict_is_empty(peer->active_peers)) { key_choked = xbt_dict_cursor_get_key(cursor); peer_choked = xbt_dict_cursor_get_data(cursor); }