diff --git a/src/sbbs3/smbutil.c b/src/sbbs3/smbutil.c index 0442df310e2f50a329b321008c9eeed5e3c8bfa8..bc89ccf5e82380a2c28c16ca42f9f46b2adfdd3b 100644 --- a/src/sbbs3/smbutil.c +++ b/src/sbbs3/smbutil.c @@ -482,29 +482,6 @@ void listmsgs(ulong start, ulong count) } } -/****************************************************************************/ -/****************************************************************************/ -void dumpindex(ulong start, ulong count) -{ - ulong l=0; - idxrec_t idx; - - if(!start) - start=1; - if(!count) - count=~0; - fseek(smb.sid_fp,(start-1L)*sizeof(idxrec_t),SEEK_SET); - while(l<count) { - if(!fread(&idx,1,sizeof(idx),smb.sid_fp)) - break; - - printf("%4lu %04hX %04hX %04Xh %04Xh %06X %.24s\n" - ,idx.number,idx.from,idx.to,idx.subj,idx.attr - ,idx.offset,ctime(&idx.time)); - l++; - } -} - char *binstr(uchar *buf, ushort length) { static char str[512]; @@ -564,6 +541,29 @@ char *my_timestr(time_t *intime) return(str); } +/****************************************************************************/ +/****************************************************************************/ +void dumpindex(ulong start, ulong count) +{ + ulong l=0; + idxrec_t idx; + + if(!start) + start=1; + if(!count) + count=~0; + fseek(smb.sid_fp,(start-1L)*sizeof(idxrec_t),SEEK_SET); + while(l<count) { + if(!fread(&idx,1,sizeof(idx),smb.sid_fp)) + break; + + printf("%4lu %04hX %04hX %04Xh %04Xh %06X %s\n" + ,idx.number,idx.from,idx.to,idx.subj,idx.attr + ,idx.offset,my_timestr((time_t*)&idx.time)); + l++; + } +} + /****************************************************************************/ /* Displays message header information */ /****************************************************************************/