[vala] posix vapi: fgets() can return NULL



commit 127f592a4c47321faef3525e4a2c439ac88b24e4
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Jul 21 13:44:56 2011 +0200

    posix vapi: fgets() can return NULL

 vapi/posix.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 375ffb4..9737101 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -2324,7 +2324,7 @@ namespace Posix {
 		[CCode (cname = "fgetc")]
 		public int getc ();
 		[CCode (cname = "fgets", instance_pos = -1)]
-		public unowned string gets (char[] s);
+		public unowned string? gets (char[] s);
 		[CCode (cname = "feof")]
 		public bool eof ();
 		[CCode (cname = "fscanf"), ScanfFormat]



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