summaryrefslogtreecommitdiff
path: root/lib/long-options.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 22:35:55 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 22:35:55 +0000
commita36ee874e8f0040d2b009a3ee76a7649a00a8d5e (patch)
tree418dd168d78ca7d7ecfed937453aa1393a94cbd4 /lib/long-options.c
parentb4b1fa73a42eddd55dfcf3fb05182f0694bff8c3 (diff)
downloadcoreutils-a36ee874e8f0040d2b009a3ee76a7649a00a8d5e.tar.xz
(parse_long_options): Use prototype for usage function arg.
Pass it EXIT_SUCCESS rather than 0, for clarity.
Diffstat (limited to 'lib/long-options.c')
-rw-r--r--lib/long-options.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/long-options.c b/lib/long-options.c
index ada070eb0..1c4e74a00 100644
--- 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.
- 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
@@ -49,7 +49,7 @@ parse_long_options (int argc,
const char *command_name,
const char *package,
const char *version,
- void (*usage_func)(),
+ void (*usage_func) (int),
/* const char *author1, ...*/ ...)
{
int c;
@@ -66,7 +66,7 @@ parse_long_options (int argc,
switch (c)
{
case 'h':
- (*usage_func) (0);
+ (*usage_func) (EXIT_SUCCESS);
case 'v':
{