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 297fb517 authored by deuce's avatar deuce

Fix more warnings.

parent 0ac6132d
......@@ -79,14 +79,17 @@ $(LIBPREFIX):
mkdir $(LIBPREFIX)
clean:
rm \
-rm \
$(LIBPREFIX)doors.o \
$(LIBPREFIX)tplib.o \
timeport$(BINSUFFIX) \
tp-event$(BINSUFFIX) \
outside$(BINSUFFIX) \
makemod$(BINSUFFIX) \
outside$(BINSUFFIX) \
badtimes$(BINSUFFIX) \
stoneage$(BINSUFFIX) \
twenties$(BINSUFFIX) \
install$(BINSUFFIX) \
$(LIBPREFIX)libtp.so \
$(LIBPREFIX)libtp.so.$(VER)
......
......@@ -857,7 +857,7 @@ void OpenStats(char *a1)
short c=0;
char str[MAXPATHLEN];
FILE *file;
unsigned char buf[241];
char buf[241];
int x;
char ach1[16];
......@@ -927,7 +927,7 @@ void OpenStats(char *a1)
RecordNumber = c;
FirstAvail = c;
}
if(*buf<' ' || *buf > 128)
if(*buf<' ' && *buf > -128)
{
ch1[0]=0;
Found = 1;
......@@ -1135,7 +1135,7 @@ void SaveStats(char *a0, char *a1, int b1, int c1, char *d1, char *E1, char *f1,
short c=0;
char path[MAXPATHLEN];
FILE *file;
unsigned char buf[241];
char buf[241];
char outbuf[241];
int Record=0;
......@@ -1147,7 +1147,7 @@ void SaveStats(char *a0, char *a1, int b1, int c1, char *d1, char *E1, char *f1,
c++;
buf[0]=0;
fread(buf, RecLen, 1, file);
if(buf[0] < ' ' || buf[0] > 128)
if(buf[0] < ' ' && buf[0] > -128)
{
// buf[0] = 0;
strcpy(buf,a1);
......@@ -1211,7 +1211,7 @@ void SaveStrStats(char *a0, char *a1, char *b1, char *c1, char *d1, char *E1, ch
short c=0;
char path[MAXPATHLEN];
FILE *file;
unsigned char buf[241];
char buf[241];
char outbuf[241];
int Record=0;
......@@ -1223,7 +1223,7 @@ void SaveStrStats(char *a0, char *a1, char *b1, char *c1, char *d1, char *E1, ch
c++;
buf[0]=0;
fread(buf, RecLen, 1, file);
if(buf[0] < ' ' || buf[0] > 128)
if(buf[0] < ' ' && buf[0] > -128)
{
// buf[0] = 0;
strcpy(buf,a1);
......
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