Commit 8df898ad authored by rswindell's avatar rswindell
Browse files

Fix compile errors introduced with redefinition of post_t

for sbbs_t::loadposts().
parent 887bb109
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2014 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -2054,7 +2054,7 @@ ulong loadmsgs(post_t** post, ulong ptr)
if((idx.attr&MSG_MODERATED) && !(idx.attr&MSG_VALIDATED))
break;
(*post)[l++]=idx;
(*post)[l++].idx=idx;
}
smb_unlocksmbhdr(&smb[cur_smb]);
if(!l)
......@@ -3827,18 +3827,18 @@ void export_echomail(char *sub_code,faddr_t addr)
printf("\r%8s %5lu of %-5"PRIu32" "
,scfg.sub[i]->code,m+1,posts);
memset(&msg,0,sizeof(msg));
msg.idx=post[m];
msg.idx=post[m].idx;
if((k=smb_lockmsghdr(&smb[cur_smb],&msg))!=SMB_SUCCESS) {
lprintf(LOG_ERR,"ERROR %d (%s) line %d locking %s msghdr"
,k,smb[cur_smb].last_error,__LINE__,smb[cur_smb].file);
continue;
}
k=smb_getmsghdr(&smb[cur_smb],&msg);
if(k || msg.hdr.number!=post[m].number) {
if(k || msg.hdr.number!=post[m].idx.number) {
smb_unlockmsghdr(&smb[cur_smb],&msg);
smb_freemsgmem(&msg);
msg.hdr.number=post[m].number;
msg.hdr.number=post[m].idx.number;
if((k=smb_getmsgidx(&smb[cur_smb],&msg))!=SMB_SUCCESS) {
lprintf(LOG_ERR,"ERROR %d line %d reading %s index",k,__LINE__
,smb[cur_smb].file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment