qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix tosa_dac_recv warning
@ 2009-01-27  1:56 Nathan Froyd
  2009-02-07 15:21 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Froyd @ 2009-01-27  1:56 UTC (permalink / raw)
  To: qemu-devel

This patch fixes:

/scratch/froydnj/qemu.git/hw/tosa.c:176: warning: no previous prototype for 'tosa_dac_recv'

by making the function static.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
---
 hw/tosa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/tosa.c b/hw/tosa.c
index 64ebaa4..6702b6b 100644
--- a/hw/tosa.c
+++ b/hw/tosa.c
@@ -172,7 +172,7 @@ static void tosa_dac_event(i2c_slave *i2c, enum i2c_event event)
     }
 }
 
-int tosa_dac_recv(i2c_slave *s)
+static int tosa_dac_recv(i2c_slave *s)
 {
     printf("%s: recv not supported!!!\n", __FUNCTION__);
     return -1;
-- 
1.6.0.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Fix tosa_dac_recv warning
  2009-01-27  1:56 [Qemu-devel] [PATCH] Fix tosa_dac_recv warning Nathan Froyd
@ 2009-02-07 15:21 ` Aurelien Jarno
  0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2009-02-07 15:21 UTC (permalink / raw)
  To: Nathan Froyd; +Cc: qemu-devel

On Mon, Jan 26, 2009 at 05:56:12PM -0800, Nathan Froyd wrote:
> This patch fixes:
> 
> /scratch/froydnj/qemu.git/hw/tosa.c:176: warning: no previous prototype for 'tosa_dac_recv'
> 
> by making the function static.
> 
> Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
> ---
>  hw/tosa.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied.
 
> diff --git a/hw/tosa.c b/hw/tosa.c
> index 64ebaa4..6702b6b 100644
> --- a/hw/tosa.c
> +++ b/hw/tosa.c
> @@ -172,7 +172,7 @@ static void tosa_dac_event(i2c_slave *i2c, enum i2c_event event)
>      }
>  }
>  
> -int tosa_dac_recv(i2c_slave *s)
> +static int tosa_dac_recv(i2c_slave *s)
>  {
>      printf("%s: recv not supported!!!\n", __FUNCTION__);
>      return -1;
> -- 
> 1.6.0.5
> 
> 
> 
> 

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-07 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27  1:56 [Qemu-devel] [PATCH] Fix tosa_dac_recv warning Nathan Froyd
2009-02-07 15:21 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).