summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-12-10 20:20:47 +0100
committerWerner Koch <wk@gnupg.org>1998-12-10 20:20:47 +0100
commitaf6e96e4f918169508acd8a710309cf617eff3c1 (patch)
treebe313d86fcf1e63ae95686216e149e3aac770749 /tools
parentSee ChangeLog: Wed Dec 9 13:41:06 CET 1998 Werner Koch (diff)
downloadgnupg2-af6e96e4f918169508acd8a710309cf617eff3c1.tar.xz
gnupg2-af6e96e4f918169508acd8a710309cf617eff3c1.zip
See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch
Diffstat (limited to 'tools')
-rw-r--r--tools/ChangeLog4
-rw-r--r--tools/mpicalc.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/tools/ChangeLog b/tools/ChangeLog
index bd342718a..0f956055b 100644
--- a/tools/ChangeLog
+++ b/tools/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 10 20:15:36 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
+
+ * mpicalc.c (main): Moved initialization out of definition.
+
Mon May 18 15:39:22 1998 Werner Koch (wk@isil.d.shuttle.de)
* mk-tdata.c: New.
diff --git a/tools/mpicalc.c b/tools/mpicalc.c
index 0e2980587..3d7ae37ca 100644
--- a/tools/mpicalc.c
+++ b/tools/mpicalc.c
@@ -211,12 +211,16 @@ main(int argc, char **argv)
{
static ARGPARSE_OPTS opts[] = {
{0} };
- ARGPARSE_ARGS pargs = { &argc, &argv, 0 };
+ ARGPARSE_ARGS pargs;
int i, c;
int state = 0;
char strbuf[1000];
int stridx=0;
+ pargs.argc = &argc;
+ pargs.argv = &argv;
+ pargs.flags = 0;
+
i18n_init();
while( arg_parse( &pargs, opts) ) {
switch( pargs.r_opt ) {