]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: getpass(3) returns null on error.
authorDr. Michael Lauer <mickey@vanille-media.de>
Tue, 6 Mar 2018 15:42:55 +0000 (16:42 +0100)
committerDr. Michael Lauer <mickey@vanille-media.de>
Tue, 6 Mar 2018 15:42:55 +0000 (16:42 +0100)
vapi/posix.vapi

index 5265ab52d3518c8c96b5f5824ddbc91fdf31502d..953570b351096f96bffa6460f1fc7954021cbf22 100644 (file)
@@ -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")]