ftypes: Clean up duplicate struct field

This commit is contained in:
João Valverde 2021-11-11 09:38:40 +00:00
parent 5503d5e131
commit fd78f1ed02
2 changed files with 2 additions and 3 deletions

View File

@ -890,7 +890,7 @@ eui64_from_unparsed(fvalue_t *fv, const char *s, gboolean allow_partial_value _U
memcpy(eui64.bytes, bytes->data, 8);
g_byte_array_free(bytes, TRUE);
fv->value.integer64 = GUINT64_FROM_BE(eui64.value);
fv->value.uinteger64 = GUINT64_FROM_BE(eui64.value);
return TRUE;
}
@ -903,7 +903,7 @@ eui64_to_repr(wmem_allocator_t *scope, const fvalue_t *fv, ftrepr_t rtype _U_, i
} eui64;
/* Copy and convert the address from host to network byte order. */
eui64.value = GUINT64_TO_BE(fv->value.integer64);
eui64.value = GUINT64_TO_BE(fv->value.uinteger64);
return wmem_strdup_printf(scope, "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x:%.2x:%.2x",
eui64.bytes[0], eui64.bytes[1], eui64.bytes[2], eui64.bytes[3],

View File

@ -214,7 +214,6 @@ typedef struct _fvalue_t {
/* Put a few basic types in here */
guint32 uinteger;
gint32 sinteger;
guint64 integer64;
guint64 uinteger64;
gint64 sinteger64;
gdouble floating;