diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-10-05 11:26:25 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-10-05 11:26:29 +0200 |
commit | 94103a2517ef0f40953301f7e55f498df8ad2587 (patch) | |
tree | 8bb1085400387b68b9dfc4f2a0f13c6ab7ca1db4 | |
parent | 5d1605b19f93f2b9517d07c2591a7209f310dfdd (diff) | |
download | NetworkManager-94103a2517ef0f40953301f7e55f498df8ad2587.tar.gz |
fixup! config: allow to enable/disable configuration snippets
test-general.c: In function ‘_do_test_match_spec_match_config’:
test-general.c:799:32: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘gpointer {aka void *}’ [-Werror=format=]
char *sss = g_strdup_printf ("except:%s", specs->data);
-rw-r--r-- | src/tests/test-general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test-general.c b/src/tests/test-general.c index 79cfdaf2c7..3c2a33a97d 100644 --- a/src/tests/test-general.c +++ b/src/tests/test-general.c @@ -796,7 +796,7 @@ _do_test_match_spec_match_config (const char *file, gint line, const char *spec_ if (g_slist_length (specs) == 1 && match_result != NM_MATCH_SPEC_NEG_MATCH) { /* there is only one spec in the list... test that we match except: */ - char *sss = g_strdup_printf ("except:%s", specs->data); + char *sss = g_strdup_printf ("except:%s", (char *) specs->data); GSList *specs2 = g_slist_append (NULL, sss); NMMatchSpecMatchType match_result2; |