summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-08-16 06:22:01 +0200
committerAnthony G. Basile <blueness@gentoo.org>2013-08-16 18:24:48 -0400
commit556d85c62eaa46f4f668fb1ac56a16c3158f24c5 (patch)
tree4a6918d9133e6f9151455e266988c11e7c429672 /src/libudev
parent9b8ca4f5a942f7c6253777887f43a7ce603d428b (diff)
libudev/strbuf.c: remove usage of glibc-internal __compar_fn_t
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/strbuf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libudev/strbuf.c b/src/libudev/strbuf.c
index 01a076c2ba..189b01a81a 100644
--- a/src/libudev/strbuf.c
+++ b/src/libudev/strbuf.c
@@ -95,8 +95,8 @@ void strbuf_cleanup(struct strbuf *str) {
free(str);
}
-static int strbuf_children_cmp(const struct strbuf_child_entry *n1,
- const struct strbuf_child_entry *n2) {
+static int strbuf_children_cmp(const void* v1, const void* v2) {
+ const struct strbuf_child_entry *n1 = v1, *n2 = v2;
return n1->c - n2->c;
}
@@ -161,8 +161,7 @@ ssize_t strbuf_add_string(struct strbuf *str, const char *s, size_t len) {
c = s[len - 1 - depth];
search.c = c;
child = bsearch(&search, node->children, node->children_count,
- sizeof(struct strbuf_child_entry),
- (__compar_fn_t) strbuf_children_cmp);
+ sizeof(struct strbuf_child_entry), strbuf_children_cmp);
if (!child)
break;
node = child->child;