diff options
author | 2005-10-30 23:59:43 +0000 | |
---|---|---|
committer | 2005-10-30 23:59:43 +0000 | |
commit | d0774bb2f04aa46ef0bdd42b0257c67ce679eb9b (patch) | |
tree | 1ab2f9e8809448936de56aaa7ca504f25babdf02 /regress/lib/libpthread/socket/3/socket3.c | |
parent | add daca audio support, found in some macppc machines; (diff) | |
download | wireguard-openbsd-d0774bb2f04aa46ef0bdd42b0257c67ce679eb9b.tar.xz wireguard-openbsd-d0774bb2f04aa46ef0bdd42b0257c67ce679eb9b.zip |
-Wall cleanup.
Diffstat (limited to 'regress/lib/libpthread/socket/3/socket3.c')
-rw-r--r-- | regress/lib/libpthread/socket/3/socket3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libpthread/socket/3/socket3.c b/regress/lib/libpthread/socket/3/socket3.c index 6df2e25f2a6..241489b263f 100644 --- a/regress/lib/libpthread/socket/3/socket3.c +++ b/regress/lib/libpthread/socket/3/socket3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket3.c,v 1.3 2003/07/31 21:48:06 deraadt Exp $ */ +/* $OpenBSD: socket3.c,v 1.4 2005/10/30 23:59:43 fgsch Exp $ */ /* PUBLIC DOMAIN Oct 2002 <marc@snafu.org> */ /* Test blocking/non-blocking mode inheritance on accept */ @@ -28,7 +28,7 @@ sock_connect(void *arg) int sock; SET_NAME("connect"); - port = (int)arg; + port = *(int *)arg; CHECKe(sock = socket(AF_INET, SOCK_STREAM, 0)); sin.sin_family = AF_INET; sin.sin_port = htons(port); @@ -80,7 +80,7 @@ sock_accept(void *arg) /* Create another thread to connect to the listening socket. */ CHECKr(pthread_create(&connect_thread, NULL, sock_connect, - (void*)port)); + (void *)&port)); /* * Use poll to check for a pending connection as the socket |