summaryrefslogtreecommitdiffstats
path: root/fnet/src/tests/locking/drainpackets.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-01-13 16:53:02 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-01-13 16:53:02 +0100
commitb4bd9c1287e08d79b6eca81fa0ff0f84cb422089 (patch)
treee071bae305c302bd9726cff38d9e072239dc2dd6 /fnet/src/tests/locking/drainpackets.cpp
parent71ecce0d5fc572a6e71dc9b554c57df9f6ea7827 (diff)
NULL -> nullptr
Diffstat (limited to 'fnet/src/tests/locking/drainpackets.cpp')
-rw-r--r--fnet/src/tests/locking/drainpackets.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fnet/src/tests/locking/drainpackets.cpp b/fnet/src/tests/locking/drainpackets.cpp
index 066923f0c70..5fedea4790f 100644
--- a/fnet/src/tests/locking/drainpackets.cpp
+++ b/fnet/src/tests/locking/drainpackets.cpp
@@ -18,7 +18,7 @@ TEST("drain packets") {
FastOS_Time start;
FastOS_Time stop;
- FNET_Mutex lock;
+ FastOS_Mutex lock;
FNET_PacketQueue q1(512);
FNET_PacketQueue q2(512);
@@ -110,13 +110,13 @@ TEST("drain packets") {
FNET_Packet *packet;
FNET_Context context;
- while ((packet = q1.DequeuePacket(0, &context)) != NULL) {
+ while ((packet = q1.DequeuePacket(0, &context)) != nullptr) {
q3.QueuePacket_NoLock(packet, context);
}
//------------------------
- while ((packet = q3.DequeuePacket(0, &context)) != NULL) {
+ while ((packet = q3.DequeuePacket(0, &context)) != nullptr) {
q1.QueuePacket_NoLock(packet, context);
}
}