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

Fix new error with Clang 6.x:

exec.cpp:438:8: error: case value evaluates to 2684500526, which cannot be narrowed to type 'int32_t' (aka 'int')
      [-Wc++11-narrowing]
                case 0xA0023A2E:
                     ^

The switch cases were unsigned, but the passed value was an int32.
parent f2bf7059
......@@ -39,7 +39,7 @@
#include "cmdshell.h"
#include "js_request.h"
char ** sbbs_t::getstrvar(csi_t *bin, int32_t name)
char ** sbbs_t::getstrvar(csi_t *bin, uint32_t name)
{
uint i;
......@@ -124,7 +124,7 @@ char ** sbbs_t::getstrvar(csi_t *bin, int32_t name)
return((char **)&sysvar_p[sysvar_pi++]);
}
int32_t * sbbs_t::getintvar(csi_t *bin, int32_t name)
int32_t * sbbs_t::getintvar(csi_t *bin, uint32_t name)
{
uint i;
......
......@@ -569,8 +569,8 @@ public:
long exec_bin(const char *mod, csi_t *csi, const char* startup_dir=NULL);
void clearvars(csi_t *bin);
void freevars(csi_t *bin);
char** getstrvar(csi_t *bin, int32_t name);
int32_t* getintvar(csi_t *bin, int32_t name);
char** getstrvar(csi_t *bin, uint32_t name);
int32_t* getintvar(csi_t *bin, uint32_t name);
char* copystrvar(csi_t *csi, char *p, char *str);
void skipto(csi_t *csi, uchar inst);
bool ftp_cmd(csi_t* csi, SOCKET ctrl_sock, const char* cmdsrc, char* rsp);
......
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