func: static register_type_length_mismatch(void) proto_type_length_mismatch = proto_register_protocol ( "Type Length Mismatch" , "Type length mismatch" , "_ws.type_length" );  proto_register_protocol(const char *name, const char const char *filter_name) protocol_t * protocol ; header_field_info * hfinfo ; int proto_id ; protocol = g_new ( protocol_t , 1 ); protocol -> name = name; protocol -> short_name = short_name; protocol -> filter_name = filter_name; protocol -> fields = g_ptr_array_new ( ); protocol -> is_enabled = TRUE; protocol -> can_toggle = TRUE; protocol -> heur_list = NULL; hfinfo = g_slice_new ( header_field_info ); hfinfo -> name = name; hfinfo -> abbrev = filter_name; hfinfo -> type = FT_PROTOCOL; hfinfo -> display = BASE_NONE; hfinfo -> strings = protocol; hfinfo -> bitmask = 0; hfinfo -> ref_type = HF_REF_TYPE_NONE; hfinfo -> blurb = NULL; hfinfo -> parent = - 1; proto_id = proto_register_field_init ( hfinfo , hfinfo -> parent ); static proto_register_field_init(header_field_info *hfinfo, const int parent) tmp_fld_check_assert ( hfinfo ); static tmp_fld_check_assert(header_field_info *hfinfo) if ( ( hfinfo -> strings != NULL ) && ! ( hfinfo -> display & BASE_RANGE_STRING ) && ! ( ( hfinfo -> display & FIELD_DISPLAY_E_MASK ) == BASE_CUSTOM ) && ( ( hfinfo -> type == FT_UINT8 ) || ( hfinfo -> type == FT_UINT16 ) || ( hfinfo -> type == FT_UINT24 ) || ( hfinfo -> type == FT_UINT32 ) || ( hfinfo -> type == FT_INT8 ) || ( hfinfo -> type == FT_INT16 ) || ( hfinfo -> type == FT_INT24 ) || ( hfinfo -> type == FT_INT32 ) || ( hfinfo -> type == FT_FRAMENUM ) ) )  int n , m ; const value_string * start_values ; const value_string * current ; if ( hfinfo -> display & BASE_EXT_STRING )  start_values = VALUE_STRING_EXT_VS_P ( ( ( const value_string_ext * ) hfinfo -> strings ) ); start_values = ( const value_string * ) hfinfo -> strings; current = start_values; for (n=0; current; n++, current++) if ( ( current -> value == 0 ) && ( current -> strptr == NULL ) )  for (m=0; m < n; m++) if ( ( start_values [ m ] . value == current -> value ) && ( strcmp ( start_values [ m ] . strptr , current -> strptr ) != 0 ) )  