Patchwork Add missing 'static' attribute

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

Comments

Stefan Weil - May 6, 2010, 8:17 p.m.
Function usage() is only used locally.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 tests/qruncom.c |    2 +-
 tests/runcom.c  |    2 +-
 2 files changed, 2 insertions(+), 2 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.
>
>  Signed-off-by: Stefan Weil <weil@mail.berlios.de>
>  ---
>   tests/qruncom.c |    2 +-
>   tests/runcom.c  |    2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
>  diff --git a/tests/qruncom.c b/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 --git a/tests/runcom.c b/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
>
>
>
>

Patch

diff --git a/tests/qruncom.c b/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 --git a/tests/runcom.c b/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"