]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Use g_list_free_full instead of g_list_foreach
authorWolfgang Stöggl <c72578@yahoo.de>
Thu, 10 Jan 2019 16:06:21 +0000 (17:06 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 11 Jan 2019 02:32:34 +0000 (03:32 +0100)
commit78405cec24eab5c384ec331af8f0d666f5b7d95d
tree2522ebc57d550e9df8fbecec7876a31fe1e5cae0
parentcde133c1eed698b4e4acb19cc9571f3d5466cb0b
Use g_list_free_full instead of g_list_foreach

- Fixes the following compiler warnings in rrd_create.c:
  236:34: warning: cast between incompatible function types from
  'void (*)(void *)' to 'void (*)(void *, void *)'
  [-Wcast-function-type] g_list_foreach( sources, (GFunc)free, NULL );

  1022:44: warning: cast between incompatible function types from
  'void (*)(rrd_file_t *)' {aka 'void (*)(struct rrd_file_t *)'} to
  'void (*)(void *, void *)' [-Wcast-function-type]
  g_list_foreach(sources_rrd_files, (GFunc) cleanup_source_file, NULL);
src/rrd_create.c