Module Name: src Committed By: wiz Date: Mon May 20 20:46:05 UTC 2024
Modified Files: src/usr.bin/fgen: fgen.l Log Message: Improve usage. >From Igor Sobrado Delgado, so we're in sync with OpenBSD. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/usr.bin/fgen/fgen.l Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/fgen/fgen.l diff -u src/usr.bin/fgen/fgen.l:1.40 src/usr.bin/fgen/fgen.l:1.41 --- src/usr.bin/fgen/fgen.l:1.40 Mon Jan 17 20:38:49 2022 +++ src/usr.bin/fgen/fgen.l Mon May 20 20:46:05 2024 @@ -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 */ /* * Copyright (c) 1998 Eduardo Horvath. @@ -42,7 +42,7 @@ #endif #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 %} @@ -987,8 +987,8 @@ apply_macros(YY_BUFFER_STATE yinput, con 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); }