Added missing include
(nntp_itr_getitem): Changed declaration
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -26,12 +26,13 @@ | ... | @@ -26,12 +26,13 @@ |
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | #include <mailutils/sys/nntp.h> | 28 | #include <mailutils/sys/nntp.h> |
29 | #include <mailutils/iterator.h> | ||
29 | 30 | ||
30 | static int nntp_itr_dup (void **ptr, void *owner); | 31 | static int nntp_itr_dup (void **ptr, void *owner); |
31 | static int nntp_itr_destroy (iterator_t itr, void *owner); | 32 | static int nntp_itr_destroy (iterator_t itr, void *owner); |
32 | static int nntp_itr_first (void *owner); | 33 | static int nntp_itr_first (void *owner); |
33 | static int nntp_itr_next (void *woner); | 34 | static int nntp_itr_next (void *woner); |
34 | static int nntp_itr_getitem (void *owner, void **pret); | 35 | static int nntp_itr_getitem (void *owner, void * const *pret); |
35 | static int nntp_itr_curitem_p (void *owner, void *data); | 36 | static int nntp_itr_curitem_p (void *owner, void *data); |
36 | static int nntp_itr_finished_p (void *owner); | 37 | static int nntp_itr_finished_p (void *owner); |
37 | 38 | ||
... | @@ -157,7 +158,7 @@ nntp_itr_next (void *owner) | ... | @@ -157,7 +158,7 @@ nntp_itr_next (void *owner) |
157 | } | 158 | } |
158 | 159 | ||
159 | static int | 160 | static int |
160 | nntp_itr_getitem (void *owner, void **item) | 161 | nntp_itr_getitem (void *owner, void * const *item) |
161 | { | 162 | { |
162 | struct nntp_iterator *nntp_iterator = (struct nntp_iterator *)owner; | 163 | struct nntp_iterator *nntp_iterator = (struct nntp_iterator *)owner; |
163 | if (item) | 164 | if (item) | ... | ... |
-
Please register or sign in to post a comment