[vala] posix: fix socklen_t and its usage in getnameinfo



commit 42346889d6f8e7e9df40e236ac24e98e29916687
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Wed Jan 18 21:16:56 2012 +0100

    posix: fix socklen_t and its usage in getnameinfo
    
    Acked-by: Luca Bruno <lethalman88 gmail com>

 vapi/posix.vapi |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 9ddb431..a69dc58 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -801,7 +801,7 @@ namespace Posix {
     public const int NI_NUMERICSERV;
 
     [CCode (cheader_filename = "netdb.h,sys/socket.h")]
-    public int getnameinfo (ref SockAddr sa, socklen_t salen, char[] node, char[] service, socklen_t servicelen, int flags);
+    public int getnameinfo (SockAddr sa, socklen_t salen, char[] node, char[] service, int flags);
 
 	[CCode (cheader_filename = "poll.h", cname = "struct pollfd")]
 	public struct pollfd {
@@ -1477,10 +1477,8 @@ namespace Posix {
 	[CCode (cheader_filename = "sys/socket.h")]
 	public int socketpair (int domain, int type, int protocol, [CCode (array_length = false)] int[] sv);
 
-    [SimpleType]
-    [IntegerType]
     [CCode (cname = "socklen_t", cheader_filename = "sys/socket.h", default_value = "0")]
-    public struct socklen_t {
+    public struct socklen_t : int {
     }
 
 	[SimpleType]



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