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 0d7eb6ee authored by sbbs's avatar sbbs

Fix various JSDOCS_BUILD with gcc warnings.

warning: ISO C++ forbids converting a string constant to 'char*'
and comparision between signed/unsigned int.
This does *not* address the reported build issue:
In function `_start':
(.text+0x20): undefined reference to `main'
parent d3cc2183
......@@ -166,7 +166,7 @@ enum {
};
#ifdef BUILD_JSDOCS
static char* bbs_prop_desc[] = {
static const char* bbs_prop_desc[] = {
"system status bitfield (see <tt>SS_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,"startup options bitfield (see <tt>BBS_OPT_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,"answer time, in <i>time_t</i> format"
......
......@@ -353,7 +353,7 @@ static jsSyncPropertySpec js_console_properties[] = {
};
#ifdef BUILD_JSDOCS
static char* con_prop_desc[] = {
static const char* con_prop_desc[] = {
"status bit-field (see <tt>CON_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,"current 0-based line counter (used for automatic screen pause)"
,"current 0-based column counter (used to auto-increment <i>line_counter</i> when screen wraps)"
......
......@@ -463,7 +463,7 @@ int DLLCALL sbbs_random(int n)
static js_server_props_t js_server_props;
JSBool
DLLCALL js_CreateArrayOfStrings(JSContext* cx, JSObject* parent, const char* name, char* str[],uintN flags)
DLLCALL js_CreateArrayOfStrings(JSContext* cx, JSObject* parent, const char* name, const char* str[],uintN flags)
{
JSObject* array;
JSString* js_str;
......@@ -601,7 +601,7 @@ DLLCALL js_DefineSyncMethods(JSContext* cx, JSObject* obj, jsSyncMethodSpec *fun
// If the first item is already in the list, don't do anything.
if(!JS_GetArrayLength(cx, method_array, &len))
return(JS_FALSE);
for(i=0; i<len; i++) {
for(i=0; i<(int)len; i++) {
if(JS_GetElement(cx, method_array, i, &val)!=JS_TRUE || val == JSVAL_VOID)
continue;
JS_GetProperty(cx, JSVAL_TO_OBJECT(val), "name", &val);
......
......@@ -1234,7 +1234,7 @@ extern "C" {
DLLEXPORT JSBool DLLCALL js_SyncResolve(JSContext* cx, JSObject* obj, char *name, jsSyncPropertySpec* props, jsSyncMethodSpec* funcs, jsConstIntSpec* consts, int flags);
DLLEXPORT JSBool DLLCALL js_DefineConstIntegers(JSContext* cx, JSObject* obj, jsConstIntSpec*, int flags);
DLLEXPORT JSBool DLLCALL js_CreateArrayOfStrings(JSContext* cx, JSObject* parent
,const char* name, char* str[], unsigned flags);
,const char* name, const char* str[], unsigned flags);
DLLEXPORT BOOL DLLCALL js_CreateCommonObjects(JSContext* cx
,scfg_t* cfg /* common */
,scfg_t* node_cfg /* node-specific */
......
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