prefs.c: fix compilation with gcc 8

error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]

Change-Id: Id9f791c78e45d2373c3c1ce57059ef1e973a2fb1
hange-Id: I25597a730efcd580a1dd327d4fc38ab940a8b4d8
Reviewed-on: https://code.wireshark.org/review/27263
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Pascal Quantin 2018-05-02 18:34:00 +02:00 committed by Anders Broman
parent ec0f8e6c36
commit 092564a336
1 changed files with 1 additions and 3 deletions

View File

@ -3754,9 +3754,7 @@ char *join_string_list(GList *sl)
void
prefs_clear_string_list(GList *sl)
{
/* g_list_free_full() only exists since 2.28. */
g_list_foreach(sl, (GFunc)g_free, NULL);
g_list_free(sl);
g_list_free_full(sl, g_free);
}
/*