projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exit-status fixes from coreutils.
[gnulib.git]
/
lib
/
long-options.c
diff --git
a/lib/long-options.c
b/lib/long-options.c
index
ada070e
..
1c4e74a
100644
(file)
--- a/
lib/long-options.c
+++ b/
lib/long-options.c
@@
-1,6
+1,6
@@
/* Utility to accept --help and --version options as unobtrusively as possible.
/* Utility to accept --help and --version options as unobtrusively as possible.
- Copyright (C) 1993, 1994, 1998, 1999, 2000, 2002, 2003 Free
+ Copyright (C) 1993, 1994, 1998, 1999, 2000, 2002, 2003
, 2004
Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@
-49,7
+49,7
@@
parse_long_options (int argc,
const char *command_name,
const char *package,
const char *version,
const char *command_name,
const char *package,
const char *version,
- void (*usage_func)
(
),
+ void (*usage_func)
(int
),
/* const char *author1, ...*/ ...)
{
int c;
/* const char *author1, ...*/ ...)
{
int c;
@@
-66,7
+66,7
@@
parse_long_options (int argc,
switch (c)
{
case 'h':
switch (c)
{
case 'h':
- (*usage_func) (
0
);
+ (*usage_func) (
EXIT_SUCCESS
);
case 'v':
{
case 'v':
{