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
Prefer nullptr and bool literals.
[simgrid.git]
/
src
/
surf
/
ns3
/
ns3_simulator.cpp
diff --git
a/src/surf/ns3/ns3_simulator.cpp
b/src/surf/ns3/ns3_simulator.cpp
index
ebff56b
..
4b7e9b6
100644
(file)
--- a/
src/surf/ns3/ns3_simulator.cpp
+++ b/
src/surf/ns3/ns3_simulator.cpp
@@
-75,7
+75,7
@@
static void send_cb(ns3::Ptr<ns3::Socket> sock, uint32_t txSpace)
flow->remaining_);
return;
}
- int amountSent = sock->Send(
0
, toWrite, 0);
+ int amountSent = sock->Send(
nullptr
, toWrite, 0);
xbt_assert(amountSent > 0, "Since TxAvailable>0, amountSent should also >0");
flow->buffered_bytes_ += amountSent;