Skip to content
Snippets Groups Projects
Commit 6cbf6f65 authored by rswindell's avatar rswindell
Browse files

Fixed gcc -Wall warnings.

parent a4aab6c4
No related branches found
No related tags found
No related merge requests found
...@@ -588,7 +588,7 @@ short int lzh_decode_position(uchar *inbuf, long *incnt, long inlen) ...@@ -588,7 +588,7 @@ short int lzh_decode_position(uchar *inbuf, long *incnt, long inlen)
while (j--) { while (j--) {
i = (i << 1) + lzh_getbit(inbuf,incnt,inlen); i = (i << 1) + lzh_getbit(inbuf,incnt,inlen);
} }
return c | i & 0x3f; return c | (i & 0x3f);
} }
/* Compression */ /* Compression */
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <stdlib.h> /* exit */ #include <stdlib.h> /* exit */
#include <string.h> /* strrchr */ #include <string.h> /* strrchr */
#include <time.h> /* ctime */ #include <time.h> /* ctime */
#include <ctype.h> /* toupper */
/* SMB-specific */ /* SMB-specific */
#include "smblib.h" #include "smblib.h"
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <ctype.h> /* isdigit */
/* Synchronet-specific */ /* Synchronet-specific */
#include "sbbsdefs.h" #include "sbbsdefs.h"
......
...@@ -131,7 +131,7 @@ void sbbs_t::readmail(uint usernumber, int which) ...@@ -131,7 +131,7 @@ void sbbs_t::readmail(uint usernumber, int which)
bprintf(text[StartWithN],1L); bprintf(text[StartWithN],1L);
if((long)(curmsg=getnum(msgs))>0) if((long)(curmsg=getnum(msgs))>0)
curmsg--; curmsg--;
else if(curmsg==-1) { else if((long)curmsg==-1) {
FREE(mail); FREE(mail);
smb_close(&smb); smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP); smb_stack(&smb,SMB_STACK_POP);
...@@ -577,10 +577,10 @@ void sbbs_t::readmail(uint usernumber, int which) ...@@ -577,10 +577,10 @@ void sbbs_t::readmail(uint usernumber, int which)
break; break;
case '[': /* Search To User backward */ case '[': /* Search To User backward */
strcpy(str,msg.to); strcpy(str,msg.to);
for(i=curmsg-1;(ulong)i>-1;i--) for(i=curmsg-1;i>-1;i--)
if(mail[i].to==msg.idx.to) if(mail[i].to==msg.idx.to)
break; break;
if((ulong)i>-1) if(i>-1)
curmsg=i; curmsg=i;
else else
domsg=0; domsg=0;
......
...@@ -52,9 +52,10 @@ ...@@ -52,9 +52,10 @@
/* ANSI */ /* ANSI */
#include <stdio.h> #include <stdio.h>
#include <time.h> /* time */ #include <time.h> /* time */
#include <errno.h> /* errno */ #include <errno.h> /* errno */
#include <string.h> /* strrchr */ #include <string.h> /* strrchr */
#include <ctype.h> /* toupper */
#include "genwrap.h" /* stricmp */ #include "genwrap.h" /* stricmp */
#include "dirwrap.h" /* fexist */ #include "dirwrap.h" /* fexist */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment