[vala/staging] posix: getpass(3) returns null on error.



commit 726fd71d8b6749d747f556ca8ef681194cd925f7
Author: Dr. Michael Lauer <mickey vanille-media de>
Date:   Tue Mar 6 16:42:55 2018 +0100

    posix: getpass(3) returns null on error.

 vapi/posix.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 5265ab5..953570b 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -2125,7 +2125,7 @@ namespace Posix {
        public int chroot (string path);
        [Version (deprecated_since = "POSIX.2", replacement = "termios ECHO flag")]
        [CCode (cheader_filename = "unistd.h")]
-       public unowned string getpass (string promt);
+       public unowned string? getpass (string prompt);
        [CCode (cheader_filename = "unistd.h", feature_test_macro = "_XOPEN_SOURCE")]
        public unowned string? crypt (string key, string salt);
        [CCode (cheader_filename = "unistd.h")]


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