core: Port to vala 0.11.2
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 8 Nov 2010 20:59:26 +0000 (22:59 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 8 Nov 2010 20:59:26 +0000 (22:59 +0200)
Do so without breaking the build against 0.11.2.

src/rygel/rygel-http-post.vala

index 8e7ff9d..27bca01 100644 (file)
@@ -97,7 +97,9 @@ internal class Rygel.HTTPPost : HTTPRequest {
 
     private async void write_chunk (Buffer chunk) {
         try {
-            this.stream.write (chunk.data.data, this.cancellable);
+            // FIXME: Remove redundant cast to string after we bump our vala dep
+            //        to 0.11.2
+            this.stream.write (((string) chunk.data).data, this.cancellable);
         } catch (Error error) {
             this.handle_error (error);
             this.handle_continue ();