summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 667893e)
raw | patch | inline | side by side (parent: 667893e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 19:23:59 +0000 (21:23 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 19:25:55 +0000 (21:25 +0200) |
CC libcollectdclient_la-client.lo
"client.c", line 1104: argument #4 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 134
argument : pointer to void
"client.c", line 1104: argument #4 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 134
argument : pointer to void
src/libcollectdclient/client.c | patch | blob | history | |
src/libcollectdclient/collectd/client.h | patch | blob | history |
index 26a59297d27aa39e3ea319711f32370e9a00bce5..77fd576ee5d5703c304c22da4ce28928849554fb 100644 (file)
return (0);
} /* }}} int lcc_string_to_identifier */
-int lcc_identifier_compare (const lcc_identifier_t *i0, /* {{{ */
- const lcc_identifier_t *i1)
+int lcc_identifier_compare (const void *a, /* {{{ */
+ const void *b)
{
+ const lcc_identifier_t *i0 = a;
+ const lcc_identifier_t *i1 = b;
int status;
if ((i0 == NULL) && (i1 == NULL))
}
qsort (idents, idents_num, sizeof (*idents),
- (void *) lcc_identifier_compare);
+ lcc_identifier_compare);
return (0);
} /* }}} int lcc_sort_identifiers */
index 6ae85984e95958afb6a9f1207cd38c42bcaea7e3..ac26b848e0cbec863f21aaf59a34cef495a0cc2f 100644 (file)
/* Compares the identifiers "i0" and "i1" and returns less than zero or greater
* than zero if "i0" is smaller than or greater than "i1", respectively. If
* "i0" and "i1" are identical, zero is returned. */
-int lcc_identifier_compare (const lcc_identifier_t *i0,
- const lcc_identifier_t *i1);
+int lcc_identifier_compare (const void *i0,
+ const void *i1);
int lcc_sort_identifiers (lcc_connection_t *c,
lcc_identifier_t *idents, size_t idents_num);