After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707180 - posix: Correct sockaddr.sa_data field name
posix: Correct sockaddr.sa_data field name
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
unspecified
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-31 14:57 UTC by Jussi Kukkonen
Modified: 2013-08-31 18:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
posix: Correct sockaddr.sa_data field name (758 bytes, patch)
2013-08-31 14:57 UTC, Jussi Kukkonen
none Details | Review

Description Jussi Kukkonen 2013-08-31 14:57:57 UTC
struct sockaddr is defined something like this:

           struct sockaddr {
               sa_family_t sa_family;
               char        sa_data[14];
           }

In posix.vapi the data field is named inconsistently:
	[CCode (cname = "struct sockaddr", cheader_filename = "sys/socket.h", destroy_function = "")]
	public struct SockAddr {
		public int sa_family;
		[CCode (array_length = false)]
		public char[] data;
	}

Attaching patch.
Comment 1 Jussi Kukkonen 2013-08-31 14:57:59 UTC
Created attachment 253689 [details] [review]
posix: Correct sockaddr.sa_data field name
Comment 2 Luca Bruno 2013-08-31 18:27:03 UTC
commit 328fea77686dc0c70a78ef126b7040b3d4c04e6f
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date:   Sat Aug 31 17:46:30 2013 +0300

    posix: Correct sockaddr.sa_data field name
    
    Fixes bug 707180.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.