Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
dbcd5431
...
dbcd54314406ce43aaa236de31f618858879c129
authored
2004-06-15 04:14:27 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mailutils/nntp.h mailutils/sys/nntp.h
adjustement to the headers.
1 parent
beee5d8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
include/mailutils/nntp.h
include/mailutils/sys/nntp.h
include/mailutils/nntp.h
View file @
dbcd543
...
...
@@ -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_head
er
(
mu_nntp_t
nntp
,
long
num
,
stream_t
*
stream
);
extern
int
mu_nntp_head
er_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
);
...
...
include/mailutils/sys/nntp.h
View file @
dbcd543
...
...
@@ -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_HEAD
ER
,
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; \
...
...
Please
register
or
sign in
to post a comment