summaryrefslogtreecommitdiff
path: root/trans/magic.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-07-15 18:42:53 +0000
committerMiles Bader <miles@gnu.org>1997-07-15 18:42:53 +0000
commitc13ec88bd1cd8705d0268db4f14cf250fe474622 (patch)
treefd6b200cd2fb799e77e714d467256dde00e5dbbb /trans/magic.c
parentd98febf42e37c4280f12ed02a9841d63129dfd9f (diff)
(main): Actually parse the arg.
Diffstat (limited to 'trans/magic.c')
-rw-r--r--trans/magic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trans/magic.c b/trans/magic.c
index 4e5a8bd7..a8f764a0 100644
--- a/trans/magic.c
+++ b/trans/magic.c
@@ -38,13 +38,13 @@ void
main (int argc, char **argv)
{
error_t err;
+ size_t arg_index;
mach_port_t bootstrap, control, realnode;
struct argp argp = { 0, 0, args_doc, doc };
- argp_parse (&argp, argc, argv, 0, 0, 0);
+ argp_parse (&argp, argc, argv, 0, &arg_index, 0);
+ magic = argv[arg_index];
- magic = argv[1];
-
task_get_bootstrap_port (mach_task_self (), &bootstrap);
if (bootstrap == MACH_PORT_NULL)
error (3, 0, "Must be started as a translator");