Commit 5bb1a0eb authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

Compilation fix for NetBSD and gcc on Solaris 10

parent fd5db1f7
......@@ -101,8 +101,8 @@ LibDHCP::packOptions6(boost::shared_array<uint8_t> data,
}
}
catch (const Exception& e) {
cout << "Packet build failed." << endl;
return (-1);
cout << "Packet build failed (Option build failed)." << endl;
throw;
}
return (offset);
}
......
......@@ -248,7 +248,8 @@ TEST_F(Option6IATest, suboptions_unpack) {
EXPECT_EQ(0xcafe, subopt->getType());
EXPECT_EQ(4, subopt->len());
EXPECT_EQ(NULL, subopt->getData());
// there should be no data at all
EXPECT_EQ(static_cast<void*>(NULL), subopt->getData());
subopt = ia->getOption(1); // get option 1
ASSERT_FALSE(subopt); // should be NULL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment