mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-07 02:25:38 +00:00
usage function cleanup
SCCS-file: zdump.c SCCS-SID: 8.10
This commit is contained in:
committed by
Paul Eggert
parent
1b51dae56c
commit
9141e8082d
8
zdump.c
8
zdump.c
@@ -236,7 +236,9 @@ const char * const zone;
|
||||
}
|
||||
|
||||
static void
|
||||
usage(const char *progname, FILE *stream, int status)
|
||||
usage(stream, status)
|
||||
FILE * const stream;
|
||||
const int status;
|
||||
{
|
||||
(void) fprintf(stream,
|
||||
_("%s: usage is %s [ --version ] [ --help ] [ -v ] [ -c [loyear,]hiyear ] zonename ...\n\
|
||||
@@ -283,7 +285,7 @@ char * argv[];
|
||||
(void) printf("%s\n", elsieid);
|
||||
exit(EXIT_SUCCESS);
|
||||
} else if (strcmp(argv[i], "--help") == 0) {
|
||||
usage(progname, stdout, EXIT_SUCCESS);
|
||||
usage(stdout, EXIT_SUCCESS);
|
||||
}
|
||||
vflag = 0;
|
||||
cutarg = NULL;
|
||||
@@ -293,7 +295,7 @@ char * argv[];
|
||||
else cutarg = optarg;
|
||||
if ((c != EOF && c != -1) ||
|
||||
(optind == argc - 1 && strcmp(argv[optind], "=") == 0)) {
|
||||
usage(progname, stderr, EXIT_FAILURE);
|
||||
usage(stderr, EXIT_FAILURE);
|
||||
}
|
||||
if (vflag) {
|
||||
if (cutarg != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user