Remove some unused 'GMemChunk *' variables and se_alloc() to same.
(Found by using -DG_DISABLE_DEPRECATED when compiling dissectors). svn path=/trunk/; revision=38390
This commit is contained in:
parent
055f20b798
commit
9e61dfeb33
|
@ -546,10 +546,8 @@ typedef struct {
|
||||||
nstime_t req_time; /*time of the last request*/
|
nstime_t req_time; /*time of the last request*/
|
||||||
} sbus_request_val;
|
} sbus_request_val;
|
||||||
|
|
||||||
/* The hash/GMemChunk structure (for conversations)*/
|
/* The hash structure (for conversations)*/
|
||||||
static GHashTable *sbus_request_hash = NULL;
|
static GHashTable *sbus_request_hash = NULL;
|
||||||
static GMemChunk *sbus_request_keys = NULL;
|
|
||||||
static GMemChunk *sbus_request_vals = NULL;
|
|
||||||
|
|
||||||
static guint crc_calc (guint crc, guint val)
|
static guint crc_calc (guint crc, guint val)
|
||||||
{
|
{
|
||||||
|
@ -589,8 +587,6 @@ static void sbus_init_protocol(void){
|
||||||
g_hash_table_destroy(sbus_request_hash);
|
g_hash_table_destroy(sbus_request_hash);
|
||||||
}
|
}
|
||||||
sbus_request_hash = g_hash_table_new(sbus_hash, sbus_equal);
|
sbus_request_hash = g_hash_table_new(sbus_hash, sbus_equal);
|
||||||
sbus_request_keys = se_alloc(sizeof(sbus_request_key));
|
|
||||||
sbus_request_vals = se_alloc(sizeof(sbus_request_val));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check whether the packet looks like SBUS or not */
|
/* check whether the packet looks like SBUS or not */
|
||||||
|
|
Loading…
Reference in New Issue