1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Done some -pedantic modifications.

This commit is contained in:
Matias Fontanini
2013-01-24 13:44:30 -03:00
parent a826d92666
commit c7c56a610c
21 changed files with 23 additions and 27 deletions

View File

@@ -308,5 +308,5 @@ namespace Tins {
arphdr _arp;
};
};
}
#endif //TINS_ARP_H

View File

@@ -342,6 +342,6 @@ namespace Tins {
bootphdr _bootp;
vend_type _vend;
};
};
}
#endif // TINS_BOOTP_H

View File

@@ -148,11 +148,11 @@ namespace Tins {
IEEE802154 = 804, /* IEEE 802.15.4 header. */
IEEE802154_PHY = 805, /* IEEE 802.15.4 PHY header. */
VOID_TYPE = 0xFFFF, /* Void type, nothing is known. */
NONE = 0xFFFE, /* Zero header length. */
NONE = 0xFFFE /* Zero header length. */
};
};
};
};
}
}
#endif // TINS_CONSTANTS_H

View File

@@ -418,6 +418,6 @@ namespace Tins {
options_type _options;
uint32_t _size;
};
};
}
#endif // TINS_DHCP_H

View File

@@ -646,7 +646,7 @@ namespace Tins {
mutable SuffixMap suffixes;
mutable SuffixIndices suffix_indices;
};
};
}
#endif // TINS_DNS_H

View File

@@ -3405,8 +3405,6 @@ namespace Tins {
StartSequence _start_sequence;
uint8_t _bitmap[bitmap_size];
};
};
}
#endif // TINS_DOT_11

View File

@@ -728,6 +728,6 @@ namespace Tins {
rsnhdr _header;
key_type _key;
};
};
}
#endif // TINS_EAPOL_H

View File

@@ -216,7 +216,7 @@ namespace Tins {
NetworkInterface _iface;
};
};
}
#endif // TINS_ETHERNET_II_H

View File

@@ -329,6 +329,6 @@ namespace Tins {
icmphdr _icmp;
};
};
}
#endif // TINS_ICMP_H

View File

@@ -214,8 +214,7 @@ namespace Tins {
ethhdr _eth;
NetworkInterface _iface;
};
};
}
#endif // TINS_IEEE802_3_H

View File

@@ -619,6 +619,6 @@ namespace Tins {
std::list<ip_option> _ip_options;
uint32_t _options_size, _padded_options_size;
};
};
}
#endif // TINS_IP_H

View File

@@ -136,7 +136,7 @@ namespace Tins {
uint32_t ip_addr;
};
};
}
#endif // TINS_IPADDRESS_H

View File

@@ -391,6 +391,6 @@ namespace Tins {
std::list<field_type> information_fields;
};
};
}
#endif // TINS_IEEE8022_H

View File

@@ -256,6 +256,6 @@ namespace Tins {
return "The provided socket type is invalid";
}
};
};
}
#endif // TINS_PACKET_SENDER_H

View File

@@ -375,6 +375,6 @@ namespace Tins {
*lop /= rop;
return lop;
}
};
}
#endif // TINS_PDU_H

View File

@@ -384,6 +384,6 @@ namespace Tins {
uint16_t _channel_freq, _rx_flags;
uint8_t _antenna, _flags, _rate, _dbm_signal, _dbm_noise, _channel, _max_power;
};
};
}
#endif // TINS_RADIOTAP_H

View File

@@ -133,7 +133,7 @@ namespace Tins {
payload_type _payload;
};
};
}
#endif // TINS_RAWPDU_H

View File

@@ -167,7 +167,6 @@ namespace Tins {
snaphdr _snap;
};
};
}
#endif // TINS_SNAP_H

View File

@@ -302,6 +302,6 @@ namespace Tins {
{
return HandlerProxy<T>(ptr, function);
}
};
}
#endif // TINS_SNIFFER_H

View File

@@ -446,6 +446,6 @@ namespace Tins {
options_type _options;
uint32_t _options_size, _total_options_size;
};
};
}
#endif // TINS_TCP_H

View File

@@ -136,6 +136,6 @@ namespace Tins {
udphdr _udp;
};
};
}
#endif // TINS_UDP_H