]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Set the returned type of putc, puts and printf to int
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Mon, 24 Oct 2011 10:03:06 +0000 (12:03 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 13:42:18 +0000 (14:42 +0100)
Fixes bug 662592.

vapi/posix.vapi

index d7b27c8efd468abf2d700ec3391e8365a5ade34a..a65ef57989f6762fa0ab47a09f9f7a0a3f43e698 100644 (file)
@@ -2338,11 +2338,11 @@ namespace Posix {
 
                [CCode (cname = "fprintf")]
                [PrintfFormat ()]
-               public void printf (string format, ...);
+               public int printf (string format, ...);
                [CCode (cname = "fputc", instance_pos = -1)]
-               public void putc (char c);
+               public int putc (char c);
                [CCode (cname = "fputs", instance_pos = -1)]
-               public void puts (string s);
+               public int puts (string s);
                [CCode (cname = "fgetc")]
                public int getc ();
                [CCode (cname = "fgets", instance_pos = -1)]