diff options
author | Thomas Haller <thaller@redhat.com> | 2019-02-04 09:57:20 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-04 10:55:25 +0100 |
commit | 14957e914adba5d1d33dab81f61e5b3de0241b30 (patch) | |
tree | 8c896ea5ea2be39f6af0b4f373583cbcb9511f97 /shared/nm-utils | |
parent | b52d3e2ad36a82103b970bce3676deb0bb33257a (diff) | |
download | NetworkManager-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.
Diffstat (limited to 'shared/nm-utils')
-rw-r--r-- | shared/nm-utils/nm-test-utils.h | 2 |
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); |