Improve usage.

From Igor Sobrado Delgado, so we're in sync with OpenBSD.
This commit is contained in:
wiz 2024-05-20 20:46:05 +00:00
parent 721b426c77
commit 7964e1f2d6
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
%{ %{
/* $NetBSD: fgen.l,v 1.40 2022/01/17 20:38:49 andvar Exp $ */ /* $NetBSD: fgen.l,v 1.41 2024/05/20 20:46:05 wiz Exp $ */
/* FLEX input for FORTH input file scanner */ /* FLEX input for FORTH input file scanner */
/* /*
* Copyright (c) 1998 Eduardo Horvath. * Copyright (c) 1998 Eduardo Horvath.
@ -42,7 +42,7 @@
#endif #endif
#if defined(__RCSID) && !defined(lint) #if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: fgen.l,v 1.40 2022/01/17 20:38:49 andvar Exp $"); __RCSID("$NetBSD: fgen.l,v 1.41 2024/05/20 20:46:05 wiz Exp $");
#endif #endif
%} %}
@ -987,8 +987,8 @@ apply_macros(YY_BUFFER_STATE yinput, const char *str)
static void static void
usage(void) usage(void)
{ {
(void)fprintf(stderr, "%s: [-d level] [-o outfile] <infile>\n", (void)fprintf(stderr, "usage: %s [-d level] [-o outfile] infile\n",
getprogname()); getprogname());
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }