tests: use in_addr_t type for IPv4 addresses in test helpers

This commit is contained in:
Thomas Haller 2020-09-18 12:25:00 +02:00
parent adb78bd471
commit 6efd4e2efa
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1400,10 +1400,10 @@ nmtst_uuid_generate (void)
g_error ("%s:%d: Expects \"%s\" but got \"%s\"", __FILE__, __LINE__, __substr, __str); \
} G_STMT_END
static inline guint32
static inline in_addr_t
nmtst_inet4_from_string (const char *str)
{
guint32 addr;
in_addr_t addr;
int success;
if (!str)