summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-05-29 04:10:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:11 -0500
commit7756b990f38495bf98e335b56bdc510659c34bdb (patch)
tree530834296a60d589d0be9b3ae22c57bf3e1fdd48 /source4/scripting
parent14ade23914b328fcb5924488c2416dfa7748e4ab (diff)
downloadsamba-7756b990f38495bf98e335b56bdc510659c34bdb.tar.gz
samba-7756b990f38495bf98e335b56bdc510659c34bdb.tar.bz2
samba-7756b990f38495bf98e335b56bdc510659c34bdb.zip
r7066: Rename http_exception to ejs_exception.
(This used to be commit f2e59d3adfd7813c3c2090350f8ff2a99a5533e9)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/smbscript.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbscript.c b/source4/scripting/ejs/smbscript.c
index f1ff03ae49..0b0a446839 100644
--- a/source4/scripting/ejs/smbscript.c
+++ b/source4/scripting/ejs/smbscript.c
@@ -23,7 +23,7 @@
#include "includes.h"
#include "lib/ejs/ejs.h"
-void http_exception(const char *reason)
+void ejs_exception(const char *reason)
{
fprintf(stderr, "smbscript exception: %s", reason);
exit(1);
@@ -61,7 +61,7 @@ static int writeProc(MprVarHandle userHandle, int argc, char **argv)
exit(1);
}
- if (ejsEvalScript(eid, "write(\"hello\n\");", &result, &emsg) == -1) {
+ if (ejsEvalFile(eid, (char *)argv[1], &result, &emsg) == -1) {
fprintf(stderr, "smbscript: ejsEvalScript(): %s\n", emsg);
exit(1);
}