[pulseaudio-commits] r2192 - /branches/prepare-0.9.10/src/pulsecore/hashmap.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Mar 29 17:38:48 PDT 2008
Author: lennart
Date: Sun Mar 30 01:38:47 2008
New Revision: 2192
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2192&root=pulseaudio&view=rev
Log:
avoid name clash with libc's remove() function
Modified:
branches/prepare-0.9.10/src/pulsecore/hashmap.c
Modified: branches/prepare-0.9.10/src/pulsecore/hashmap.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/prepare-0.9.10/src/pulsecore/hashmap.c?rev=2192&root=pulseaudio&r1=2191&r2=2192&view=diff
==============================================================================
--- branches/prepare-0.9.10/src/pulsecore/hashmap.c (original)
+++ branches/prepare-0.9.10/src/pulsecore/hashmap.c Sun Mar 30 01:38:47 2008
@@ -71,7 +71,7 @@
return h;
}
-static void remove(pa_hashmap *h, struct hashmap_entry *e) {
+static void remove_entry(pa_hashmap *h, struct hashmap_entry *e) {
pa_assert(h);
pa_assert(e);
@@ -103,7 +103,7 @@
while (h->first_entry) {
if (free_func)
free_func(h->first_entry->value, userdata);
- remove(h, h->first_entry);
+ remove_entry(h, h->first_entry);
}
pa_xfree(h->data);
@@ -182,7 +182,7 @@
return NULL;
data = e->value;
- remove(h, e);
+ remove_entry(h, e);
return data;
}
@@ -220,7 +220,7 @@
return NULL;
data = h->first_entry->value;
- remove(h, h->first_entry);
+ remove_entry(h, h->first_entry);
return data;
}
More information about the pulseaudio-commits
mailing list