summaryrefslogtreecommitdiff
path: root/x11/wx1Motif
diff options
context:
space:
mode:
authoragc <agc>2002-08-07 12:33:43 +0000
committeragc <agc>2002-08-07 12:33:43 +0000
commit405aa6e2560b7252df3503916892ca4e638ed435 (patch)
tree4fe9943b320612bd5a64d62a1c5f86b562cd54de /x11/wx1Motif
parent5e12f25c55636295baea63034a29c2278ea66afe (diff)
downloadpkgsrc-405aa6e2560b7252df3503916892ca4e638ed435.tar.gz
C++ seems to quite susceptible to using an "int *" as the third argument
to accept(2) - placate it by using an unsigned automatic value, and copying and casting as necessary.
Diffstat (limited to 'x11/wx1Motif')
-rw-r--r--x11/wx1Motif/distinfo4
-rw-r--r--x11/wx1Motif/patches/patch-ah13
2 files changed, 14 insertions, 3 deletions
diff --git a/x11/wx1Motif/distinfo b/x11/wx1Motif/distinfo
index 717553f84f2..fc05d4f41eb 100644
--- a/x11/wx1Motif/distinfo
+++ b/x11/wx1Motif/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2002/08/07 12:23:40 agc Exp $
+$NetBSD: distinfo,v 1.3 2002/08/07 12:33:43 agc Exp $
SHA1 (wx168_1.tgz) = 771e5301d81560c4750c7b28f3ed843267232af3
Size (wx168_1.tgz) = 3267398 bytes
@@ -19,6 +19,6 @@ SHA1 (patch-ad) = 23515a5df517ffb1c7b41ae7e05f3872a8d075e1
SHA1 (patch-ae) = 450c95f374e44021b0a138320f47aa213fe738c2
SHA1 (patch-af) = 450b3c43fee0b6dfebf9a2d0c1ef6d5ea0b9bb0d
SHA1 (patch-ag) = b278a78ecda1b6b3622c47f5c5cf371776a8ed90
-SHA1 (patch-ah) = 8620ff95f1a690968b9f80fb84e46248d6ab3839
+SHA1 (patch-ah) = 33b530aa7b124580bd40b71e050ca7f648c4e2f7
SHA1 (patch-ai) = 4c92fe6684744985ca9cfb0bbf2a47769927b84d
SHA1 (patch-aj) = 61f63aa81469648a0a4fcde5cd8478183a011e7b
diff --git a/x11/wx1Motif/patches/patch-ah b/x11/wx1Motif/patches/patch-ah
index d83805ba712..fbd0e00b4b2 100644
--- a/x11/wx1Motif/patches/patch-ah
+++ b/x11/wx1Motif/patches/patch-ah
@@ -1,4 +1,4 @@
-$NetBSD: patch-ah,v 1.1.1.1 2002/06/17 02:24:58 dmcmahill Exp $
+$NetBSD: patch-ah,v 1.2 2002/08/07 12:33:44 agc Exp $
--- src/x/wx_ipc.cpp.orig Thu Mar 26 17:15:44 1998
+++ src/x/wx_ipc.cpp
@@ -11,3 +11,14 @@ $NetBSD: patch-ah,v 1.1.1.1 2002/06/17 02:24:58 dmcmahill Exp $
#endif
int wx_socket_create (int port);
+@@ -426,7 +426,9 @@
+ // Args and return value are the same as connect(2).
+ int accept(int fd, struct sockaddr * addr, int * addrLen)
+ {
+- int rval = ::accept(fd, addr, addrLen);
++ unsigned u = (unsigned) *addrLen;
++ int rval = ::accept(fd, addr, &u);
++ *addrLen = (int) u;
+ if (rval > 0)
+ addSock(rval);
+ return rval;