From ee0e98fe78a9178a73423e99417a336e0d036798 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 20 Feb 1997 03:17:10 +0000 Subject: (main): Parse arguments before getting device master port. --- utils/devprobe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/devprobe.c b/utils/devprobe.c index a0f61733..db7a4b8f 100644 --- a/utils/devprobe.c +++ b/utils/devprobe.c @@ -1,6 +1,6 @@ /* Check the existence of mach devices - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1997 Free Software Foundation, Inc. Written by Miles Bader @@ -95,12 +95,12 @@ main (int argc, char **argv) } const struct argp argp = { options, parse_opt, args_doc, doc }; + /* Parse our arguments. */ + argp_parse (&argp, argc, argv, 0, 0, 0); + err = get_privileged_ports (0, &device_master); if (err) error (3, err, "Can't get device master port"); - /* Parse our arguments. */ - argp_parse (&argp, argc, argv, 0, 0, 0); - exit (found_one ? 0 : 1); } -- cgit v1.2.3