summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-02-04 09:57:20 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2019-02-04 10:55:25 +0100
commit14957e914adba5d1d33dab81f61e5b3de0241b30 (patch)
tree8c896ea5ea2be39f6af0b4f373583cbcb9511f97
parentb52d3e2ad36a82103b970bce3676deb0bb33257a (diff)
downloadNetworkManager-14957e914adba5d1d33dab81f61e5b3de0241b30.tar.gz
tests: use NM_CONST_MAX() macro where a constant expression is required
Otherwise, "nm-utils/nm-test-utils.h" won't work after we include systemd headers.
-rw-r--r--shared/nm-utils/nm-test-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-utils/nm-test-utils.h b/shared/nm-utils/nm-test-utils.h
index c235d93d50..5424d22247 100644
--- a/shared/nm-utils/nm-test-utils.h
+++ b/shared/nm-utils/nm-test-utils.h
@@ -1214,7 +1214,7 @@ nmtst_inet_from_string (int addr_family, const char *str)
static inline const char *
nmtst_inet_to_string (int addr_family, gconstpointer addr)
{
- static char buf[MAX (INET6_ADDRSTRLEN, INET_ADDRSTRLEN)];
+ static char buf[NM_CONST_MAX (INET6_ADDRSTRLEN, INET_ADDRSTRLEN)];
g_assert (NM_IN_SET (addr_family, AF_INET, AF_INET6));
g_assert (addr);