From 132c62de3caad3a9c7de679854f8eb214ad0ce8e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 21 Mar 2004 19:57:00 +0000 Subject: 2004-03-21 Marco Gerards * console.c (main): Make sure the arguments are parsed in order. * driver.c (driver_add): Set up argc and argv so they can be used by argp. * generic-speaker.c: Include and . (struct melody): New member `name'. Every melody was given a name. (BELL_CLASSIC, BELL_LINUX, BELL_ALARM, BELL_CMAJOR): New macros. (doc, options, argp): New variables. (parse_opt): New function. (generic_speaker_init): Parse the arguments using argp. * vga.c (doc, options, argp): New variables. (parse_opt): New function. (parse_startup_args): Function removed. (vga_display_init): Use argp_parse instead of parse_startup_args. --- console-client/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'console-client/console.c') diff --git a/console-client/console.c b/console-client/console.c index 0fb3aa97..4bc9d6f4 100644 --- a/console-client/console.c +++ b/console-client/console.c @@ -1,5 +1,5 @@ /* console.c -- A pluggable console client. - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. Written by Marcus Brinkmann. This program is free software; you can redistribute it and/or @@ -455,7 +455,7 @@ main (int argc, char *argv[]) driver_init (); /* Parse our command line. This shouldn't ever return an error. */ - argp_parse (&startup_argp, argc, argv, 0, 0, 0); + argp_parse (&startup_argp, argc, argv, ARGP_IN_ORDER, 0, 0); err = driver_start (&errname); if (err) -- cgit v1.2.3