[108068] trunk/base/src/pextlib1.0/tracelib.c

jmr at macports.org jmr at macports.org
Thu Jul 11 21:52:49 PDT 2013


Revision: 108068
          https://trac.macports.org/changeset/108068
Author:   jmr at macports.org
Date:     2013-07-11 21:52:49 -0700 (Thu, 11 Jul 2013)
Log Message:
-----------
don't use non-portable sun_len, pass third arg to bind as per posix

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/tracelib.c

Modified: trunk/base/src/pextlib1.0/tracelib.c
===================================================================
--- trunk/base/src/pextlib1.0/tracelib.c	2013-07-12 00:48:29 UTC (rev 108067)
+++ trunk/base/src/pextlib1.0/tracelib.c	2013-07-12 04:52:49 UTC (rev 108068)
@@ -514,9 +514,8 @@
 
     sun.sun_family = AF_UNIX;
     strlcpy(sun.sun_path, name, sizeof(sun.sun_path));
-    sun.sun_len = SUN_LEN(&sun);
 
-    if (-1 == (bind(sock, (struct sockaddr *) &sun, sun.sun_len))) {
+    if (-1 == (bind(sock, (struct sockaddr *) &sun, sizeof(sun)))) {
         Tcl_SetErrno(errno);
         Tcl_ResetResult(interp);
         Tcl_AppendResult(interp, "bind: ", (char *) Tcl_PosixError(interp), NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130711/c1137d1d/attachment.html>


More information about the macports-changes mailing list