changeset 861:15b413845e24

Oops, few dmargs* API changes related fixes were missing.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 22 Nov 2014 23:33:36 +0200
parents daebbf28953d
children 01f2af5f87b1
files src/dmsimple.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmsimple.c	Sat Nov 22 18:50:07 2014 +0200
+++ b/src/dmsimple.c	Sat Nov 22 23:33:36 2014 +0200
@@ -20,20 +20,20 @@
 
 static DMEngineData engine;
 
-static DMOptArg optList[] =
+static const DMOptArg optList[] =
 {
     { 0, '?', "help",       "Show this help", OPT_NONE },
     { 1, 'v', "verbose",    "Be more verbose", OPT_NONE },
 };
 
-const int optListN = sizeof(optList) / sizeof(optList[0]);
+static const int optListN = sizeof(optList) / sizeof(optList[0]);
 
 
 
 static void argShowHelp()
 {
     dmPrintBanner(stdout, dmProgName, "[options]");
-    dmArgsPrintHelp(stdout, optList, optListN);
+    dmArgsPrintHelp(stdout, optList, optListN, 0);
 }
 
 
@@ -586,7 +586,7 @@
         goto error_exit;
 
     if (!dmArgsProcess(argc, argv, optList, optListN,
-        argHandleOpt, NULL, FALSE))
+        argHandleOpt, NULL, OPTH_BAILOUT))
         return DMERR_INIT_FAIL;
 
     dmPrint(0,