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

Fix more compilation warnings on Windows.

This commit is contained in:
Matias Fontanini
2015-04-25 18:54:43 -07:00
parent c108f6e4e6
commit 62260ab93b
4 changed files with 5 additions and 5 deletions

View File

@@ -201,7 +201,7 @@ DHCPv6::status_code_type DHCPv6::status_code() const {
}
bool DHCPv6::has_rapid_commit() const {
return static_cast<bool>(search_option(RAPID_COMMIT));
return search_option(RAPID_COMMIT) != NULL;
}
DHCPv6::user_class_type DHCPv6::user_class() const {
@@ -225,7 +225,7 @@ uint8_t DHCPv6::reconfigure_msg() const {
}
bool DHCPv6::has_reconfigure_accept() const {
return static_cast<bool>(search_option(RECONF_ACCEPT));
return search_option(RECONF_ACCEPT) != NULL;
}
DHCPv6::duid_type DHCPv6::client_id() const {

View File

@@ -178,7 +178,7 @@ void RadioTap::init() {
channel(Utils::channel_to_mhz(1), 0xa0);
flags(FCS);
tsft(0);
dbm_signal(static_cast<int8_t>(0xce));
dbm_signal(-50);
rx_flags(0);
antenna(0);
}

View File

@@ -147,7 +147,7 @@ void TCP::sack_permitted() {
}
bool TCP::has_sack_permitted() const {
return static_cast<bool>(search_option(SACK_OK));
return search_option(SACK_OK) != NULL;
}
void TCP::sack(const sack_type &edges) {