[Spice-devel] [PATCH] red_tunnel_worker: Fix build error due to missing monitor_latency argument

Axel Lin axel.lin at ingics.com
Sat Oct 12 11:56:00 CEST 2013


Fix missing monitor_latency argument in red_channel_client_create call.

Signed-off-by: Axel Lin <axel.lin at ingics.com>
---
This fix build error in spice-0.12.4.

red_tunnel_worker.c: In function 'handle_tunnel_channel_link':
red_tunnel_worker.c:3421:59: warning: passing argument 6 of 'red_channel_client_create' makes integer from pointer without a cast [enabled by default]
In file included from reds.h:34:0,
                 from red_tunnel_worker.c:39:
red_channel.h:369:19: note: expected 'int' but argument is of type 'void *'
red_tunnel_worker.c:3421:59: warning: passing argument 8 of 'red_channel_client_create' makes integer from pointer without a cast [enabled by default]
In file included from reds.h:34:0,
                 from red_tunnel_worker.c:39:
red_channel.h:369:19: note: expected 'int' but argument is of type 'void *'
red_tunnel_worker.c:3421:59: error: too few arguments to function 'red_channel_client_create'
In file included from reds.h:34:0,
                 from red_tunnel_worker.c:39:
red_channel.h:369:19: note: declared here
make[5]: *** [red_tunnel_worker.lo] Error 1


 server/red_tunnel_worker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/red_tunnel_worker.c b/server/red_tunnel_worker.c
index 97dcafd..6781d73 100644
--- a/server/red_tunnel_worker.c
+++ b/server/red_tunnel_worker.c
@@ -3417,7 +3417,7 @@ static void handle_tunnel_channel_link(RedChannel *channel, RedClient *client,
     }
 
     tcc = (TunnelChannelClient*)red_channel_client_create(sizeof(TunnelChannelClient),
-                                                          channel, client, stream,
+                                                          channel, client, stream, FALSE,
                                                           0, NULL, 0, NULL);
     if (!tcc) {
         return;
-- 
1.8.1.2





More information about the Spice-devel mailing list