diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-18 19:39:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-18 19:39:12 +0000 |
commit | c6ec14449470fce01a93bd0724ea3146c3ba3e7e (patch) | |
tree | 6a222465ed5113f2f2f011396c07b2cefcae946f /lib/long-options.c | |
parent | 2c5fbb29a6c44279b909a2a781cd2c3cb84bad0f (diff) | |
download | coreutils-c6ec14449470fce01a93bd0724ea3146c3ba3e7e.tar.xz |
revert previous change
Diffstat (limited to 'lib/long-options.c')
-rw-r--r-- | lib/long-options.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/long-options.c b/lib/long-options.c index 94fea1587..58bc93c1d 100644 --- a/lib/long-options.c +++ b/lib/long-options.c @@ -25,10 +25,9 @@ #include "long-options.h" -#include <stdarg.h> #include <stdio.h> -#include <stdlib.h> #include <getopt.h> +#include <stdlib.h> #include "version-etc.h" @@ -48,8 +47,8 @@ parse_long_options (int argc, const char *command_name, const char *package, const char *version, - void (*usage_func)(), - ...) + const char *authors, + void (*usage_func)()) { int c; int saved_opterr; @@ -68,12 +67,8 @@ parse_long_options (int argc, (*usage_func) (0); case 'v': - { - va_list args; - va_start (args, usage_func); - version_etc_va (stdout, command_name, package, version, args); - exit (0); - } + version_etc (stdout, command_name, package, version, authors); + exit (0); default: /* Don't process any other long-named options. */ |