From 6efd4e2efaf7f4e320718dc5c376cf23a8371145 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 18 Sep 2020 12:25:00 +0200 Subject: [PATCH] tests: use in_addr_t type for IPv4 addresses in test helpers --- shared/nm-utils/nm-test-utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/nm-utils/nm-test-utils.h b/shared/nm-utils/nm-test-utils.h index 446b86b3ac..f5f44068f3 100644 --- a/shared/nm-utils/nm-test-utils.h +++ b/shared/nm-utils/nm-test-utils.h @@ -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)