Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 6cbf6f65 authored by rswindell's avatar rswindell

Fixed gcc -Wall warnings.

parent a4aab6c4
......@@ -588,7 +588,7 @@ short int lzh_decode_position(uchar *inbuf, long *incnt, long inlen)
while (j--) {
i = (i << 1) + lzh_getbit(inbuf,incnt,inlen);
}
return c | i & 0x3f;
return c | (i & 0x3f);
}
/* Compression */
......
......@@ -40,6 +40,7 @@
#include <stdlib.h> /* exit */
#include <string.h> /* strrchr */
#include <time.h> /* ctime */
#include <ctype.h> /* toupper */
/* SMB-specific */
#include "smblib.h"
......
......@@ -46,6 +46,7 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <ctype.h> /* isdigit */
/* Synchronet-specific */
#include "sbbsdefs.h"
......
......@@ -131,7 +131,7 @@ void sbbs_t::readmail(uint usernumber, int which)
bprintf(text[StartWithN],1L);
if((long)(curmsg=getnum(msgs))>0)
curmsg--;
else if(curmsg==-1) {
else if((long)curmsg==-1) {
FREE(mail);
smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP);
......@@ -577,10 +577,10 @@ void sbbs_t::readmail(uint usernumber, int which)
break;
case '[': /* Search To User backward */
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)
break;
if((ulong)i>-1)
if(i>-1)
curmsg=i;
else
domsg=0;
......
......@@ -52,9 +52,10 @@
/* ANSI */
#include <stdio.h>
#include <time.h> /* time */
#include <errno.h> /* errno */
#include <string.h> /* strrchr */
#include <time.h> /* time */
#include <errno.h> /* errno */
#include <string.h> /* strrchr */
#include <ctype.h> /* toupper */
#include "genwrap.h" /* stricmp */
#include "dirwrap.h" /* fexist */
......
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