[vala] D-Bus: Fix C warnings when using file descriptor passing with GDBus
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix C warnings when using file descriptor passing with GDBus
- Date: Mon, 25 Oct 2010 13:01:03 +0000 (UTC)
commit d12ccdc819e4618cf719e37d7492bc895a9e4c6c
Author: Jürg Billeter <j bitron ch>
Date: Mon Oct 25 10:20:11 2010 +0200
D-Bus: Fix C warnings when using file descriptor passing with GDBus
codegen/valagdbusmodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagdbusmodule.vala b/codegen/valagdbusmodule.vala
index 6667771..44f61e8 100644
--- a/codegen/valagdbusmodule.vala
+++ b/codegen/valagdbusmodule.vala
@@ -183,12 +183,12 @@ public class Vala.GDBusModule : GVariantModule {
var result = new CCodeFunctionCall (new CCodeIdentifier ("g_unix_input_stream_new"));
result.add_argument (expr);
result.add_argument (new CCodeConstant ("TRUE"));
- return result;
+ return new CCodeCastExpression (result, "GUnixInputStream *");
} else if (type.data_type.get_full_name () == "GLib.UnixOutputStream") {
var result = new CCodeFunctionCall (new CCodeIdentifier ("g_unix_output_stream_new"));
result.add_argument (expr);
result.add_argument (new CCodeConstant ("TRUE"));
- return result;
+ return new CCodeCastExpression (result, "GUnixOutputStream *");
} else if (type.data_type.get_full_name () == "GLib.Socket") {
var result = new CCodeFunctionCall (new CCodeIdentifier ("g_socket_new_from_fd"));
result.add_argument (expr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]