projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd9ff08
)
foreach: remove unused var warning.
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 31 Oct 2012 11:05:27 +0000
(21:35 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 31 Oct 2012 11:05:27 +0000
(21:35 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/foreach/foreach.c
patch
|
blob
|
history
diff --git
a/ccan/foreach/foreach.c
b/ccan/foreach/foreach.c
index 879ab86e99c3df3a71a6d0b1dea49297d6818562..ab0f515c643edca6633d79a0d3f0d4b42468412b 100644
(file)
--- a/
ccan/foreach/foreach.c
+++ b/
ccan/foreach/foreach.c
@@
-144,10
+144,8
@@
int _foreach_intval_next(const void *i, int val, ...)
void *_foreach_ptrval_init(const void *i, const void *val, ...)
{
- struct iter_info *info;
-
free_old_iters(i);
-
info =
new_iter(i);
+ new_iter(i);
return (void *)val;
}