]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: mark inet_ntop as nullable
authorDmitry Vagin <dmitry2004@yandex.ru>
Wed, 24 Oct 2012 03:15:08 +0000 (20:15 -0700)
committerJürg Billeter <j@bitron.ch>
Sun, 11 Nov 2012 13:04:58 +0000 (14:04 +0100)
Fixes bug 678988.

vapi/posix.vapi

index dc3cade69d7003f7cd954251cf9e7b2cffa6d645..e6a284219858161071123556a478785bc4c1d813 100644 (file)
@@ -353,7 +353,7 @@ namespace Posix {
        [CCode (cheader_filename = "arpa/inet.h")]
        public unowned string inet_ntoa (InAddr addr);
        [CCode (cheader_filename = "arpa/inet.h")]
-       public unowned string inet_ntop (int af, void* src, uint8[] dst);
+       public unowned string? inet_ntop (int af, void* src, uint8[] dst);
        [CCode (cheader_filename = "arpa/inet.h")]
        public int inet_pton (int af, string src, void* dst);
        [CCode (cheader_filename = "arpa/inet.h")]