[vala/0.14] posix: Set the returned type of putc, puts and printf to int



commit 808210b08e3891b2bf59f69199795da1d6747292
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Mon Oct 24 12:03:06 2011 +0200

    posix: Set the returned type of putc, puts and printf to int
    
    Fixes bug 662592.

 vapi/posix.vapi |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index d7b27c8..a65ef57 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)]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]