summaryrefslogtreecommitdiffstats
path: root/src/PacketHandler.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-09 03:01:58 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-09 03:01:58 +0200
commit91c124e189c6cd2d515410b4b3bae2add74a3a8e (patch)
tree920358aa6c1e539a32e08733388874085ba96031 /src/PacketHandler.vala
parentd8f3c4f7d6ab17559a94f757ccaa13fde60f0c56 (diff)
downloadeva-master.tar
eva-master.zip
Fix build for current Vala versionHEADmaster
Diffstat (limited to 'src/PacketHandler.vala')
-rw-r--r--src/PacketHandler.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PacketHandler.vala b/src/PacketHandler.vala
index 4b1c926..8c6a576 100644
--- a/src/PacketHandler.vala
+++ b/src/PacketHandler.vala
@@ -37,7 +37,7 @@ namespace Eva {
break;
}
- ostream.write(buffer.buff, buffer.buff.length, null);
+ ostream.write(((uint8[])buffer.buff)[0:buffer.buff.length], null);
}
private async void receive() throws Error {
@@ -60,10 +60,10 @@ namespace Eva {
}
uint8[] buffer = new uint8[length];
- size_t received = 0;
+ ssize_t received = 0;
while(received < length) {
- size_t ret = yield istream.read_async(&(buffer[received]), length-received, 0, null);
+ ssize_t ret = yield istream.read_async(buffer[received:length], 0, null);
assert(ret > 0);
received += ret;