git: 93b7af1d854d - main - diff: Re-add void argument to usage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Mar 2022 16:26:25 UTC
The branch main has been updated by thj:
URL: https://cgit.FreeBSD.org/src/commit/?id=93b7af1d854db2a92dc9fcca70e068a159385f4d
commit 93b7af1d854db2a92dc9fcca70e068a159385f4d
Author: Tom Jones <thj@FreeBSD.org>
AuthorDate: 2022-03-10 16:24:02 +0000
Commit: Tom Jones <thj@FreeBSD.org>
CommitDate: 2022-03-10 16:24:02 +0000
diff: Re-add void argument to usage
Previous commit (8cf449db88b2c7a505bc241a78f9736b43f2ede5)
unintentionally dropped the 'void' argument to usage, reinstate it.
Sponsored by: Klara Inc.
---
usr.bin/diff/diff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
index ba6bc7c3a310..8b8b1f65c07b 100644
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -582,7 +582,7 @@ print_status(int val, char *path1, char *path2, const char *entry)
}
static void
-usage()
+usage(void)
{
(void)fprintf(help ? stdout : stderr,
"usage: diff [-aBbdilpTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]\n"