From fef7a81478cb246a7d2fe29283a50d52501ccc33 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Aug 2005 23:31:18 +0000 Subject: r9491: fixed up a few scripts that need to be updated for the new GetOptions syntax. Mimir, its a good idea to use grep -r to find places that need fixing when you change the syntax of a call :-) (This used to be commit 1ead49f8e823a69dbd9cd3df3f5be04dc17e0d1f) --- testprogs/ejs/samr.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'testprogs/ejs/samr.js') diff --git a/testprogs/ejs/samr.js b/testprogs/ejs/samr.js index b518fea234..fbdae974be 100755 --- a/testprogs/ejs/samr.js +++ b/testprogs/ejs/samr.js @@ -3,14 +3,12 @@ test samr calls from ejs */ -var options = new Object(); - -ok = GetOptions(ARGV, options, - "POPT_AUTOHELP", - "POPT_COMMON_SAMBA", - "POPT_COMMON_CREDENTIALS"); -if (ok == false) { - println("Failed to parse options: " + options.ERROR); +var options = GetOptions(ARGV, + "POPT_AUTOHELP", + "POPT_COMMON_SAMBA", + "POPT_COMMON_CREDENTIALS"); +if (options == undefined) { + println("Failed to parse options"); return -1; } -- cgit