"Cannot find Codec %s's api", cd_api->base.name);
int pos = p - s_codecs.begin();
- if(instantiated_api[pos])
+ if(instantiated_api[(std::size_t)pos])
return true;
instantiated_api[pos] = true;
s_protocols[s_proto_map[id]]->get_name(), cd->get_name(),
id, cd->get_name());
- s_proto_map[id] = codec_id;
+ s_proto_map[id] = (uint8_t)codec_id;
}
s_protocols[codec_id++] = cd;
inline void set_tcp_offset(TCPHdr *tcph, uint8_t value)
{
- tcph->th_offx2 = (tcph->th_offx2 & 0x0f) | (value << 4);
+ tcph->th_offx2 = (uint8_t)((tcph->th_offx2 & 0x0f) | (value << 4));
}
inline void set_tcp_x2(TCPHdr* tcph, uint8_t value)
if(bits < 0 || bits > 128) return;
- p->bits = bits;
+ p->bits = (int16_t)bits;
}
/* Returns the raw IP address as an in6_addr */
static const std::string start_comments =
"\nCOMMENTS:\n"
- " these line were originally commented "
+ " these line were commented "
"in the configuration file.";
static const std::string start_errors =