diff options
author | Miles Bader <miles@gnu.org> | 1997-02-20 03:17:10 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-20 03:17:10 +0000 |
commit | ee0e98fe78a9178a73423e99417a336e0d036798 (patch) | |
tree | 4542734692a7d7341b8fdbf202a1b034300f7b56 | |
parent | 2a4e8af2120eddaeb0fde613c8586269916939fc (diff) |
(main):
Parse arguments before getting device master port.
-rw-r--r-- | utils/devprobe.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <miles@gnu.ai.mit.edu> @@ -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); } |