[vala] posix: Set the returned type of putc, puts and printf to int
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] posix: Set the returned type of putc, puts and printf to int
- Date: Mon, 24 Oct 2011 21:40:34 +0000 (UTC)
commit e950c23b9f0bde04daa1e45ac4c2b58a40ddd200
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]