summaryrefslogtreecommitdiffabout
path: root/include
authorAlain Magloire <alainm@gnu.org>2004-06-15 04:14:27 (GMT)
committer Alain Magloire <alainm@gnu.org>2004-06-15 04:14:27 (GMT)
commitdbcd54314406ce43aaa236de31f618858879c129 (patch) (side-by-side diff)
tree03a93c108c091a63520a478bfab8460e76819517 /include
parentbeee5d8f2df6c274f7cc88c29ff47290282c2499 (diff)
downloadmailutils-dbcd54314406ce43aaa236de31f618858879c129.tar.gz
mailutils-dbcd54314406ce43aaa236de31f618858879c129.tar.bz2
mailutils/nntp.h mailutils/sys/nntp.h
adjustement to the headers.
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
-rw-r--r--include/mailutils/nntp.h14
-rw-r--r--include/mailutils/sys/nntp.h6
2 files changed, 10 insertions, 10 deletions
diff --git a/include/mailutils/nntp.h b/include/mailutils/nntp.h
index b617dde..18eeeda 100644
--- a/include/mailutils/nntp.h
+++ b/include/mailutils/nntp.h
@@ -45,16 +45,16 @@ extern int mu_nntp_set_debug (mu_nntp_t nntp, mu_debug_t debug);
extern int mu_nntp_stls (mu_nntp_t nntp);
-extern int mu_nntp_article (mu_nntp_t nntp, long num, stream_t *stream);
-extern int mu_nntp_article_id (mu_nntp_t nntp, const char *id, stream_t *stream);
+extern int mu_nntp_article (mu_nntp_t nntp, unsigned long num, unsigned long *pnum, char **mid, stream_t *stream);
+extern int mu_nntp_article_id (mu_nntp_t nntp, const char *id, unsigned long *pnum, char **mid, stream_t *stream);
-extern int mu_nntp_header (mu_nntp_t nntp, long num, stream_t *stream);
-extern int mu_nntp_header_id (mu_nntp_t nntp, const char *name, stream_t *stream);
+extern int mu_nntp_head (mu_nntp_t nntp, unsigned long num, unsigned long *pnum, char **mid, stream_t *stream);
+extern int mu_nntp_head_id (mu_nntp_t nntp, const char *name, unsigned long *pnum, char **mid, stream_t *stream);
-extern int mu_nntp_body (mu_nntp_t nntp, long num, stream_t *stream);
-extern int mu_nntp_body_id (mu_nntp_t nntp, const char *name, stream_t *stream);
+extern int mu_nntp_body (mu_nntp_t nntp, unsigned long num, unsigned long *pnum, char **mid, stream_t *stream);
+extern int mu_nntp_body_id (mu_nntp_t nntp, const char *name, unsigned long *pnum, char **mid, stream_t *stream);
-extern int mu_nntp_stat (mu_nntp_t nntp, long num, char **id);
+extern int mu_nntp_stat (mu_nntp_t nntp, unsigned long num, char **id);
extern int mu_nntp_stat_id (mu_nntp_t nntp, const char *name, char **id);
extern int mu_nntp_group (mu_nntp_t nntp, const char *group, long *total, long *first, long *last, char **name);
diff --git a/include/mailutils/sys/nntp.h b/include/mailutils/sys/nntp.h
index 6f200d9..705e71f 100644
--- a/include/mailutils/sys/nntp.h
+++ b/include/mailutils/sys/nntp.h
@@ -35,7 +35,7 @@ enum mu_nntp_state
MU_NNTP_NO_STATE,
MU_NNTP_CONNECT, MU_NNTP_GREETINGS,
MU_NNTP_ARTICLE, MU_NNTP_ARTICLE_ACK, MU_NNTP_ARTICLE_RX,
- MU_NNTP_HEADER, MU_NNTP_HEADER_ACK, MU_NNTP_HEADER_RX,
+ MU_NNTP_HEAD, MU_NNTP_HEAD_ACK, MU_NNTP_HEAD_RX,
MU_NNTP_BODY, MU_NNTP_BODY_ACK, MU_NNTP_BODY_RX,
MU_NNTP_STAT, MU_NNTP_STAT_ACK,
MU_NNTP_STLS, MU_NNTP_STLS_ACK, MU_NNTP_STLS_CONNECT,
@@ -120,10 +120,10 @@ while (0)
/* Check if we got "2xx". In NNTP protocol and ack of "2xx" means the command was successfull.
*/
-#define MU_NNTP_CHECK_COMPLETE(nntp) \
+#define MU_NNTP_CHECK_OK(nntp) \
do \
{ \
- if (nntp->ack.buf[0] == '2') != 0) \
+ if (nntp->ack.buf[0] != '2') \
{ \
nntp->state = MU_NNTP_NO_STATE; \
return EACCES; \

Return to:

Send suggestions and report system problems to the System administrator.