Add missing 'static' attribute
PATCH 1/1 Add missing 'static' attribute
Function usage() is only used locally.
--- tests/qruncom.c | 2 +- tests/runcom.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
tests/qruncom.c +1 -1
@@ -89,7 +89,7 @@ int errno;#define COM_BASE_ADDR 0x10100 -void usage (void ) +static void usage (void ) {printf ("qruncom version 0.1 (c) 2003 Fabrice Bellard\n" "usage: qruncom file.com\n"
tests/runcom.c +1 -1
@@ -25,7 +25,7 @@ _syscall2(int, vm86, int, func, struct vm86plus_struct *, v86)#define COM_BASE_ADDR 0x10100 -void usage (void ) +static void usage (void ) {printf ("runcom version 0.1 (c) 2003 Fabrice Bellard\n" "usage: runcom file.com\n"
Signature · 1 line
1.7.0
Blue Swirl
AppliedThanks, applied.
Quoted 41 lines · Stefan Weil
Function
usage()is only used locally.Signed-off-by Stefan Weil <[email protected]>---
tests/qruncom.c | 2 +- tests/runcom.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)diff --git
a/tests/qruncom.cb/tests/qruncom.c
index a8d0ef6..079f7a2 100644
---a/tests/qruncom.c
+++b/tests/qruncom.c
@@ -89,7 +89,7 @@ int errno;#define COM_BASE_ADDR 0x10100-void usage(void)
+static void usage(void)
{
printf("qruncom version 0.1 (c) 2003 Fabrice Bellard\n"
"usage: qruncom file.com\n"
diff --gita/tests/runcom.cb/tests/runcom.c
index cbbaf31..6380566 100644
---a/tests/runcom.c
+++b/tests/runcom.c
@@ -25,7 +25,7 @@_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86)#define COM_BASE_ADDR 0x10100-void usage(void)
+static void usage(void)
{
printf("runcom version 0.1 (c) 2003 Fabrice Bellard\n"
"usage: runcom file.com\n"--
1.7.0