Skip to content
Snippets Groups Projects
Commit 603f780d authored by rswindell's avatar rswindell
Browse files

Using SMB_DUPE_MSG macro for smb_addcrc return value test.

parent 7f65151c
No related branches found
No related tags found
No related merge requests found
...@@ -351,7 +351,7 @@ bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum ...@@ -351,7 +351,7 @@ bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum
j=smb_addcrc(&smb,crc); j=smb_addcrc(&smb,crc);
if(j) { if(j) {
if(j==1) { if(j==SMB_DUPE_MSG) {
bprintf("\r\nDuplicate message\r\n"); bprintf("\r\nDuplicate message\r\n");
if(!fromhub) { if(!fromhub) {
if(subnum==INVALID_SUB) { if(subnum==INVALID_SUB) {
......
...@@ -2600,7 +2600,7 @@ int fmsgtosmsg(uchar HUGE16 *fbuf, fmsghdr_t fmsghdr, uint user, uint subnum) ...@@ -2600,7 +2600,7 @@ int fmsgtosmsg(uchar HUGE16 *fbuf, fmsghdr_t fmsghdr, uint user, uint subnum)
crc=~crc; crc=~crc;
i=smb_addcrc(&smb[cur_smb],crc); i=smb_addcrc(&smb[cur_smb],crc);
if(i) { if(i) {
if(i==1) if(i==SMB_DUPE_MSG)
printf("Duplicate "); printf("Duplicate ");
else else
printf("smb_addcrc returned %d ",i); printf("smb_addcrc returned %d ",i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment