From: Marc-André Lureau Date: Mon, 24 Oct 2011 10:03:06 +0000 (+0200) Subject: posix: Set the returned type of putc, puts and printf to int X-Git-Tag: 0.14.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=808210b08e3891b2bf59f69199795da1d6747292;p=thirdparty%2Fvala.git posix: Set the returned type of putc, puts and printf to int Fixes bug 662592. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index d7b27c8ef..a65ef5798 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -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)]