--- sbbs/src/sbbs3/getmail.c 2018/04/24 16:41:23 1.1.1.1 +++ sbbs/src/sbbs3/getmail.c 2018/04/24 16:43:44 1.1.1.2 @@ -1,14 +1,14 @@ -/* getmail.cpp */ +/* getmail.c */ /* Synchronet DLL-exported mail-related routines */ -/* $Id: getmail.c,v 1.1.1.1 2018/04/24 16:41:23 root Exp $ */ +/* $Id: getmail.c,v 1.1.1.2 2018/04/24 16:43:44 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 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 * @@ -54,7 +54,7 @@ int DLLCALL getmail(scfg_t* cfg, int use sprintf(smb.file,"%smail",cfg->data_dir); smb.retry_time=cfg->smb_retry_time; sprintf(str,"%s.sid",smb.file); - l=flength(str); + l=(long)flength(str); if(l<(long)sizeof(idxrec_t)) return(0); if(!usernumber) @@ -110,7 +110,9 @@ void DLLCALL delfattach(scfg_t* cfg, smb remove(str2); if(!p) break; - tp=p+1; } + tp=p+1; + + } sprintf(str,"%sfile/%04u.in",cfg->data_dir,msg->idx.to); rmdir(str); /* remove the dir if it's empty */ } @@ -120,7 +122,7 @@ void DLLCALL delfattach(scfg_t* cfg, smb /* of pointers to mail_t (message numbers and attributes) */ /* smb_open(&smb) must be called prior */ /****************************************************************************/ -mail_t* DLLCALL loadmail(smb_t* smb, long* msgs, uint usernumber +mail_t* DLLCALL loadmail(smb_t* smb, int32_t* msgs, uint usernumber ,int which, long mode) { ulong l=0;