Skip to content
Snippets Groups Projects
Commit df0d2443 authored by deuce's avatar deuce
Browse files

Fix warnings.

parent feed61ce
Branches
Tags
No related merge requests found
...@@ -2497,16 +2497,26 @@ js_backslash(JSContext *cx, uintN argc, jsval *arglist) ...@@ -2497,16 +2497,26 @@ js_backslash(JSContext *cx, uintN argc, jsval *arglist)
return js_internal_charfunc(cx, argc, arglist, backslash, 1); return js_internal_charfunc(cx, argc, arglist, backslash, 1);
} }
static char *nonconst_getfname(char *c)
{
return(getfname(c));
}
static JSBool static JSBool
js_getfname(JSContext *cx, uintN argc, jsval *arglist) js_getfname(JSContext *cx, uintN argc, jsval *arglist)
{ {
return js_internal_charfunc(cx, argc, arglist, getfname, 0); return js_internal_charfunc(cx, argc, arglist, nonconst_getfname, 0);
}
static char *nonconst_getfext(char *c)
{
return(getfext(c));
} }
static JSBool static JSBool
js_getfext(JSContext *cx, uintN argc, jsval *arglist) js_getfext(JSContext *cx, uintN argc, jsval *arglist)
{ {
return js_internal_charfunc(cx, argc, arglist, getfext, 0); return js_internal_charfunc(cx, argc, arglist, nonconst_getfext, 0);
} }
static JSBool static JSBool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment