Patchwork darwin-user: Add missing static attribute

login
register
mail settings
Submitter Stefan Weil
Date May 6, 2010, 8:19 p.m.
Message ID <1273177160-22486-1-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/51874/
State New
Headers show

Comments

Stefan Weil - May 6, 2010, 8:19 p.m.
Function usage is only used locally, so add "static".

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 darwin-user/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Blue Swirl - May 7, 2010, 4:34 p.m.
Thanks, applied.

On 5/6/10, Stefan Weil <weil@mail.berlios.de> wrote:
> Function usage is only used locally, so add "static".
>
>  Signed-off-by: Stefan Weil <weil@mail.berlios.de>
>  ---
>   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
>
>
>
>

Patch

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"