if (actx->pinfo->private_table) {
/* First check if called from an extension attribute */
- ctx = (p1_address_ctx_t *)g_hash_table_lookup(actx->pinfo->private_table, (gpointer)P1_ADDRESS_CTX);
+ ctx = (p1_address_ctx_t *)g_hash_table_lookup(actx->pinfo->private_table, P1_ADDRESS_CTX);
}
if (!ctx) {
if (actx->pinfo->private_table) {
/* First check if called from an extension attribute */
- ctx = (p1_address_ctx_t *)g_hash_table_lookup(actx->pinfo->private_table, (gpointer)P1_ADDRESS_CTX);
+ ctx = (p1_address_ctx_t *)g_hash_table_lookup(actx->pinfo->private_table, P1_ADDRESS_CTX);
}
if (!ctx) {
heur_dtbl_entry_t* find_heur_dissector_by_unique_short_name(const char *short_name)
{
- return (heur_dtbl_entry_t*)g_hash_table_lookup(heuristic_short_names, (gpointer)short_name);
+ return (heur_dtbl_entry_t*)g_hash_table_lookup(heuristic_short_names, short_name);
}
void
}
/* Ensure short_name is unique */
- if (g_hash_table_lookup(heuristic_short_names, (gpointer)short_name) != NULL) {
+ if (g_hash_table_lookup(heuristic_short_names, short_name) != NULL) {
g_error("Duplicate heuristic short_name \"%s\"!"
" This might be caused by an inappropriate plugin or a development error.", short_name);
}
}
g_hash_table_insert(proto_names, key, (gpointer)name);
- existing_protocol = (const protocol_t *)g_hash_table_lookup(proto_short_names, (gpointer)short_name);
+ existing_protocol = (const protocol_t *)g_hash_table_lookup(proto_short_names, short_name);
if (existing_protocol != NULL) {
g_error("Duplicate protocol short_name \"%s\"!"
" This might be caused by an inappropriate plugin or a development error.", short_name);
" Allowed are lower characters, digits, '-', '_' and '.'."
" This might be caused by an inappropriate plugin or a development error.", filter_name);
}
- existing_protocol = (const protocol_t *)g_hash_table_lookup(proto_filter_names, (gpointer)filter_name);
+ existing_protocol = (const protocol_t *)g_hash_table_lookup(proto_filter_names, filter_name);
if (existing_protocol != NULL) {
g_error("Duplicate protocol filter_name \"%s\"!"
" This might be caused by an inappropriate plugin or a development error.", filter_name);
DISSECTOR_ASSERT_HINT(filter_name, "No filter name present");
- protocol = (const protocol_t *)g_hash_table_lookup(proto_filter_names, (gpointer)filter_name);
+ protocol = (const protocol_t *)g_hash_table_lookup(proto_filter_names, filter_name);
if (protocol == NULL)
return -1;
DISSECTOR_ASSERT_HINT(short_name, "No short name present");
- protocol = (const protocol_t *)g_hash_table_lookup(proto_short_names, (gpointer)short_name);
+ protocol = (const protocol_t *)g_hash_table_lookup(proto_short_names, short_name);
if (protocol == NULL)
return -1;
const gchar* name = luaL_checkstring(L,2);
const gchar* string;
- string = (const gchar *)(g_hash_table_lookup (priv->table, (gpointer) name));
+ string = (const gchar *)(g_hash_table_lookup (priv->table, name));
if (string) {
lua_pushstring(L, string);