2023-05-01 22:45:52

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: [BlueZ PATCH v3 4/4] shared/shell: Fix smatch warning

From: Luiz Augusto von Dentz <[email protected]>

This fixes the following warning:

src/shared/shell.c:615:21: warning: non-ANSI function declaration of
function 'bt_shell_usage'
---
src/shared/shell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 757e16199ddf..db79c882ca3a 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -612,7 +612,7 @@ void bt_shell_hexdump(const unsigned char *buf, size_t len)
util_hexdump(' ', buf, len, print_string, NULL);
}

-void bt_shell_usage()
+void bt_shell_usage(void)
{
if (!data.exec)
return;
--
2.40.0