summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/appweb/ejs/ejsParser.c7
-rw-r--r--source4/lib/appweb/esp/esp.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/source4/lib/appweb/ejs/ejsParser.c b/source4/lib/appweb/ejs/ejsParser.c
index e7c44f4d6c..1f110e7ac4 100644
--- a/source4/lib/appweb/ejs/ejsParser.c
+++ b/source4/lib/appweb/ejs/ejsParser.c
@@ -2059,12 +2059,11 @@ static int evalFunction(Ejs *ep, MprVar *obj, int flags)
formalArgs = prototype->function.args;
argNames = (char**) formalArgs->handles;
-#if FUTURE
- if (formalArgs->used != actualArgs->used) {
- ejsError(ep, "Bad number of args. Should be %d", formalArgs->used);
+ if (formalArgs->used > actualArgs->used) {
+ ejsError(ep, "Bad number of args. Should be %d",
+ formalArgs->used);
return -1;
}
-#endif
/*
* Create the arguments and callee variables
diff --git a/source4/lib/appweb/esp/esp.h b/source4/lib/appweb/esp/esp.h
index 39dc5310c2..3d9b7bf8dc 100644
--- a/source4/lib/appweb/esp/esp.h
+++ b/source4/lib/appweb/esp/esp.h
@@ -103,7 +103,7 @@ typedef struct Esp {
int lifetime, const char *path, bool secure);
void (*setHeader)(EspHandle handle, const char *value, bool allowMultiple);
void (*setResponseCode)(EspHandle handle, int code);
- int (*writeBlock)(EspHandle handle, char *buf, int size);
+ int (*writeBlock)(EspHandle handle, const char *buf, int size);
int (*writeFmt)(EspHandle handle, char *fmt, ...);
#if BLD_FEATURE_MULTITHREAD
void (*lock)(void *lockData);