From: Martin Quinson Date: Sat, 24 Dec 2016 21:36:12 +0000 (+0100) Subject: cosmetics X-Git-Tag: v3_14~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/454163c3f3facba8d596c4e9ae7bbc3b374cf850 cosmetics --- diff --git a/src/surf/ns3/ns3_simulator.cc b/src/surf/ns3/ns3_simulator.cc index 06bd569643..7335db93d1 100644 --- a/src/surf/ns3/ns3_simulator.cc +++ b/src/surf/ns3/ns3_simulator.cc @@ -1,5 +1,4 @@ -/* Copyright (c) 2007-2016. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2016. 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. */ @@ -9,12 +8,9 @@ #include "xbt/log.h" #include "xbt/sysdep.h" -static void delete_mysocket(void* p) -{ +xbt_dict_t flowFromSock = xbt_dict_new_homogeneous([](void *p) { delete (SgFlow*)p; -} -xbt_dict_t flowFromSock = xbt_dict_new_homogeneous(delete_mysocket); -; // ns3::sock -> SgFlow +}); // ns3::sock -> SgFlow static void receive_callback(ns3::Ptr socket); static void send_callback(ns3::Ptr sock, uint32_t txSpace);