1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 04:11:35 +01:00

Code cleanup and use same syntax on the entire project

Initial code cleanup

More code cleanup

Cleanup more code

Cleanup Dot11 code

Fix OSX build issue

Cleanup examples

Fix ref and pointer declaration syntax

Fix braces
This commit is contained in:
Matias Fontanini
2016-01-02 08:17:59 -08:00
parent f5a82b1a17
commit d84f10cf08
177 changed files with 13203 additions and 12272 deletions

View File

@@ -20,7 +20,7 @@ public:
static address_type empty_addr;
static const uint16_t p_type;
void test_equals(const EthernetII &eth1, const EthernetII &eth2);
void test_equals(const EthernetII& eth1, const EthernetII& eth2);
};
const uint8_t EthernetIITest::expected_packet[] = {
@@ -53,7 +53,7 @@ address_type EthernetIITest::empty_addr;
const uint16_t EthernetIITest::p_type = 0xd0ab;
void EthernetIITest::test_equals(const EthernetII &eth1, const EthernetII &eth2) {
void EthernetIITest::test_equals(const EthernetII& eth1, const EthernetII& eth2) {
EXPECT_EQ(eth1.dst_addr(), eth2.dst_addr());
EXPECT_EQ(eth1.src_addr(), eth2.src_addr());
EXPECT_EQ(eth1.payload_type(), eth2.payload_type());
@@ -83,7 +83,7 @@ TEST_F(EthernetIITest, CopyAssignmentOperator) {
}
TEST_F(EthernetIITest, NestedCopy) {
EthernetII *nested = new EthernetII(expected_packet, sizeof(expected_packet));
EthernetII* nested = new EthernetII(expected_packet, sizeof(expected_packet));
EthernetII eth1(expected_packet, sizeof(expected_packet));
eth1.inner_pdu(nested);
EthernetII eth2(eth1);