chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prep v220: Apply "Fixes to user and session saving"
[elogind.git]
/
src
/
shared
/
fdset.c
diff --git
a/src/shared/fdset.c
b/src/shared/fdset.c
index 6101b628ec2fd245656c50e01324f6ee6cf7c0af..a4823e6659623602d71227929e797d83d87e38ef 100644
(file)
--- a/
src/shared/fdset.c
+++ b/
src/shared/fdset.c
@@
-267,8
+267,7
@@
bool fdset_isempty(FDSet *fds) {
int fdset_iterate(FDSet *s, Iterator *i) {
void *p;
- p = set_iterate(MAKE_SET(s), i);
- if (!p)
+ if (!set_iterate(MAKE_SET(s), i, &p))
return -ENOENT;
return PTR_TO_FD(p);