summaryrefslogtreecommitdiff
path: root/popt/test2.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-02-23 17:20:20 +0000
committerjbj <devnull@localhost>2000-02-23 17:20:20 +0000
commit6e545408441c511267b1252e29ea0668f3cc37ce (patch)
tree3b0f92a8a7adab31b7bd623c8697549389bc31e8 /popt/test2.c
parentf880c9a8d6fdd6c39dc524a2740eb3911e81bae3 (diff)
downloadrpm-6e545408441c511267b1252e29ea0668f3cc37ce.tar.gz
rpm-6e545408441c511267b1252e29ea0668f3cc37ce.tar.bz2
rpm-6e545408441c511267b1252e29ea0668f3cc37ce.zip
ANSIfcation.
CVS patchset: 3580 CVS date: 2000/02/23 17:20:20
Diffstat (limited to 'popt/test2.c')
-rw-r--r--popt/test2.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/popt/test2.c b/popt/test2.c
index f4e4baeec..3181c0fda 100644
--- a/popt/test2.c
+++ b/popt/test2.c
@@ -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