]> git.localhorst.tv Git - blank.git/commitdiff
initialize packet control in test
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 7 Oct 2015 20:30:01 +0000 (22:30 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 7 Oct 2015 20:30:01 +0000 (22:30 +0200)
oO

tst/net/PacketTest.cpp

index 751421b2f9bcb351090c34776ea4c777adbceec9..b5f9eed57f506255a56af4a63991c494757ec7ee 100644 (file)
@@ -45,8 +45,7 @@ void PacketTest::testSizes() {
 }
 
 void PacketTest::testControl() {
-       Packet::TControl ctrl;
-       ctrl.ack = 10;
+       Packet::TControl ctrl{ 0, 10, 0 };
 
        CPPUNIT_ASSERT_MESSAGE(
                "TControl should ack the packet in the ack field",