Fixed mbnntp compile problem
This commit is contained in:
parent
c02c520c16
commit
8729b84ace
@ -8,6 +8,9 @@ v0.71.2 16-Jan-2005
|
|||||||
data frames, this will case uncompress error -5 because zero
|
data frames, this will case uncompress error -5 because zero
|
||||||
bytes can't be compressed ar all.
|
bytes can't be compressed ar all.
|
||||||
|
|
||||||
|
mbnntp:
|
||||||
|
Fixed compile problem with some compilers.
|
||||||
|
|
||||||
|
|
||||||
v0.71.1 28-Nov-2004 - 16-Jan-2005
|
v0.71.1 28-Nov-2004 - 16-Jan-2005
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ char *getrfcchrs(int val)
|
|||||||
*/
|
*/
|
||||||
void command_abhs(char *buf)
|
void command_abhs(char *buf)
|
||||||
{
|
{
|
||||||
char *p, *cmd, *opt;
|
char *p, *cmd, *opt, *subj;
|
||||||
unsigned long art = 0L;
|
unsigned long art = 0L;
|
||||||
int found;
|
int found;
|
||||||
|
|
||||||
@ -195,7 +195,6 @@ void command_abhs(char *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Setup a charset translation
|
* Setup a charset translation
|
||||||
*/
|
*/
|
||||||
@ -215,7 +214,6 @@ void command_abhs(char *buf)
|
|||||||
send_nntp("Path: MBNNTP!not-for-mail");
|
send_nntp("Path: MBNNTP!not-for-mail");
|
||||||
send_nntp("From: %s <%s>", Msg.From, Msg.FromAddress);
|
send_nntp("From: %s <%s>", Msg.From, Msg.FromAddress);
|
||||||
send_nntp("Newsgroups: %s", currentgroup);
|
send_nntp("Newsgroups: %s", currentgroup);
|
||||||
char *subj;
|
|
||||||
asprintf(&subj,"Subject: %s", Msg.Subject);
|
asprintf(&subj,"Subject: %s", Msg.Subject);
|
||||||
send_xlat(subj);
|
send_xlat(subj);
|
||||||
send_nntp("Date: %s", rfcdate(Msg.Written + (gmt_offset((time_t)0) * 60)));
|
send_nntp("Date: %s", rfcdate(Msg.Written + (gmt_offset((time_t)0) * 60)));
|
||||||
|
Reference in New Issue
Block a user