summaryrefslogtreecommitdiff
path: root/src/libdatastruct
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-10 22:10:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-10 22:10:51 +0000
commitb7c6bde2b64dcea4e6d272b11dd111b704309f93 (patch)
treef8451de47974e954856d2e4848428333d7609d8e /src/libdatastruct
parent1a83aaeb67d50f321fbf4caf0d402bbacebd6857 (diff)
downloadskalibs-b7c6bde2b64dcea4e6d272b11dd111b704309f93.tar.xz
Change gensetdyn_iter to be a boolean. The old behaviour is still
accessible via gensetdyn_iter_nocancel.
Diffstat (limited to 'src/libdatastruct')
-rw-r--r--src/libdatastruct/gensetdyn_iter_withcancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdatastruct/gensetdyn_iter_withcancel.c b/src/libdatastruct/gensetdyn_iter_withcancel.c
index ffac1e0..c524b1c 100644
--- a/src/libdatastruct/gensetdyn_iter_withcancel.c
+++ b/src/libdatastruct/gensetdyn_iter_withcancel.c
@@ -6,7 +6,7 @@
int gensetdyn_iter_withcancel (gensetdyn *g, iterfunc_t_ref f, iterfunc_t_ref cancelf, void *stuff)
{
- unsigned int n = gensetdyn_iter(g, f, stuff) ;
+ unsigned int n = gensetdyn_iter_nocancel(g, g->storage.len, f, stuff) ;
if (n < g->storage.len)
{
int e = errno ;