From 6f9a8123c6e38961e0c1e76ae3c815ab38069abf Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sat, 17 Jan 2015 22:07:05 +0100 Subject: [PATCH] devicechannel: use explicit types instead of var --- src/devicechannel.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devicechannel.vala b/src/devicechannel.vala index 1482a8a..b767a53 100644 --- a/src/devicechannel.vala +++ b/src/devicechannel.vala @@ -67,8 +67,8 @@ class DeviceChannel : Object { _din.set_newline_type(DataStreamNewlineType.LF); // setup socket monitoring - var sock = _conn.get_socket(); - var source = sock.create_source(IOCondition.IN | IOCondition.ERR | + Socket sock = _conn.get_socket(); + SocketSource source = sock.create_source(IOCondition.IN | IOCondition.ERR | IOCondition.HUP); source.set_callback((src, cond) => { this._io_ready();