ANSIfcation.
authorjbj <devnull@localhost>
Wed, 23 Feb 2000 17:20:20 +0000 (17:20 +0000)
committerjbj <devnull@localhost>
Wed, 23 Feb 2000 17:20:20 +0000 (17:20 +0000)
CVS patchset: 3580
CVS date: 2000/02/23 17:20:20

popt/test2.c

index f4e4bae..3181c0f 100644 (file)
@@ -109,16 +109,20 @@ main(int argc, const char ** argv) {
     };
 
     struct poptOption optionsTable[] = {
-       { NULL, '\0', POPT_ARG_INCLUDE_TABLE,  transactOptionsTable, 0,
+       { NULL, '\0', POPT_ARG_INCLUDE_TABLE,  NULL, 0,
             "Transact Options (not all will apply)", NULL },
-       { NULL, '\0', POPT_ARG_INCLUDE_TABLE,  databaseOptionsTable, 0,
+       { NULL, '\0', POPT_ARG_INCLUDE_TABLE,  NULL, 0,
             "Transact Database Names", NULL },
-       { NULL, '\0', POPT_ARG_INCLUDE_TABLE,  userOptionsTable, 0,
+       { NULL, '\0', POPT_ARG_INCLUDE_TABLE,  NULL, 0,
             "User Fields", NULL },
         POPT_AUTOHELP
         { NULL, 0, 0, NULL, 0, NULL, NULL }
     };
 
+    optionsTable[0].arg = transactOptionsTable;
+    optionsTable[1].arg = databaseOptionsTable;
+    optionsTable[2].arg = userOptionsTable;
+
 #if HAVE_MCHECK_H && HAVE_MTRACE
     mtrace();   /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */
 #endif