Skip to contentSkip to conversation

darwin-user: Add missing static attribute

PATCH Applied Stefan Weil 2 participants 2 messages May 6, 2010 – May 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 darwin-user: Add missing static attribute

Function usage is only used locally, so add "static".

---
 darwin-user/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
darwin-user/main.c +1 -1
index ade7d48..175e12f 100644
@@ -704,7 +704,7 @@ void cpu_loop(CPUX86State *env)
 }
 #endif
 
-void usage(void)
+static void usage(void)
 {
     printf("qemu-" TARGET_ARCH " version " QEMU_VERSION ", Copyright (c) 2003-2004 Fabrice Bellard\n"
            "usage: qemu-" TARGET_ARCH " [-h] [-d opts] [-L path] [-s size] program [arguments...]\n"
Signature · 1 line
1.7.0
Applied
#1 lore raw

Thanks, applied.

Quoted 27 lines · Stefan Weil

Function usage is only used locally, so add "static".

---

  darwin-user/main.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/darwin-user/main.c b/darwin-user/main.c index ade7d48..175e12f 100644
--- a/darwin-user/main.c
+++ b/darwin-user/main.c
@@ -704,7 +704,7 @@ void cpu_loop(CPUX86State *env)
}
#endif

-void usage(void)
+static void usage(void)
{
printf("qemu-" TARGET_ARCH " version " QEMU_VERSION ", Copyright (c) 2003-2004 Fabrice Bellard\n"
"usage: qemu-" TARGET_ARCH " [-h] [-d opts] [-L path] [-s size] program [arguments...]\n"

--
1.7.0