fix usage; Thomas Klausner will commit the same diff to NetBSD within the
authorsobrado <sobrado@openbsd.org>
Mon, 20 May 2024 19:16:48 +0000 (19:16 +0000)
committersobrado <sobrado@openbsd.org>
Mon, 20 May 2024 19:16:48 +0000 (19:16 +0000)
next hours, so our trees will remain as similar as possible.

ok jmc@

usr.bin/fgen/fgen.l

index 994cf6d..00441ed 100644 (file)
@@ -1,5 +1,5 @@
 %{
-/*     $OpenBSD: fgen.l,v 1.17 2024/02/14 02:40:02 jsg Exp $   */
+/*     $OpenBSD: fgen.l,v 1.18 2024/05/20 19:16:48 sobrado Exp $       */
 /*     $NetBSD: fgen.l,v 1.37 2016/03/08 20:13:44 christos Exp $       */
 /* FLEX input for FORTH input file scanner */
 /*  
@@ -1007,8 +1007,8 @@ apply_macros(YY_BUFFER_STATE yinput, const char *str)
 static void
 usage(void)
 {
-       (void)fprintf(stderr, "%s: [-d level] [-o outfile] <infile>\n",
-       getprogname());
+       (void)fprintf(stderr, "usage: %s [-d level] [-o outfile] infile\n",
+           getprogname());
        exit(EXIT_FAILURE);
 }