aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/xtrans
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-11-02 23:36:50 +0100
committerUlrich Sibiller <uli42@gmx.de>2016-11-02 23:36:50 +0100
commit2631603b60ae8142e2a61a5d3a3b8b7be6d9a737 (patch)
tree03785738b92e2beafd3b2f2ded58cdb81f45f20b /nx-X11/lib/xtrans
parent5d06f46e56e87b20fad36506bd06007ae2c9b38d (diff)
downloadnx-libs-2631603b60ae8142e2a61a5d3a3b8b7be6d9a737.tar.gz
nx-libs-2631603b60ae8142e2a61a5d3a3b8b7be6d9a737.tar.bz2
nx-libs-2631603b60ae8142e2a61a5d3a3b8b7be6d9a737.zip
xtrans: Fix compile warning
warning: format ‘%p’ expects argument of type ‘void *’
Diffstat (limited to 'nx-X11/lib/xtrans')
-rw-r--r--nx-X11/lib/xtrans/Xtrans.c4
-rw-r--r--nx-X11/lib/xtrans/Xtranssock.c34
-rw-r--r--nx-X11/lib/xtrans/Xtransutil.c2
3 files changed, 20 insertions, 20 deletions
diff --git a/nx-X11/lib/xtrans/Xtrans.c b/nx-X11/lib/xtrans/Xtrans.c
index 16dd61155..637c419a2 100644
--- a/nx-X11/lib/xtrans/Xtrans.c
+++ b/nx-X11/lib/xtrans/Xtrans.c
@@ -132,7 +132,7 @@ void
TRANS(FreeConnInfo) (XtransConnInfo ciptr)
{
- prmsg (3,"FreeConnInfo(%p)\n", ciptr);
+ prmsg (3,"FreeConnInfo(%p)\n", (void *) ciptr);
if (ciptr->addr)
free (ciptr->addr);
@@ -1143,7 +1143,7 @@ TRANS(MakeAllCOTSServerListeners) (const char *port, int *partial,
int ipv6_succ = 0;
#endif
prmsg (2,"MakeAllCOTSServerListeners(%s,%p)\n",
- port ? port : "NULL", ciptrs_ret);
+ port ? port : "NULL", (void *) ciptrs_ret);
*count_ret = 0;
diff --git a/nx-X11/lib/xtrans/Xtranssock.c b/nx-X11/lib/xtrans/Xtranssock.c
index 12a2e1c3e..b69039d12 100644
--- a/nx-X11/lib/xtrans/Xtranssock.c
+++ b/nx-X11/lib/xtrans/Xtranssock.c
@@ -325,7 +325,7 @@ void TRANS(SocketRejectConnection) (XtransConnInfo ciptr)
struct timeval t;
int f;
- prmsg (3, "SocketRejectConnection(%p)\n", ciptr);
+ prmsg (3, "SocketRejectConnection(%p)\n", (void *) ciptr);
FD_ZERO(&fs);
FD_SET(ciptr -> fd, &fs);
@@ -619,7 +619,7 @@ int TRANS(SocketCongestionChange) (XtransConnInfo ciptr, int *state)
_NXProxyConnInfo *proxy_conn;
- prmsg (3, "SocketCongestionChange(%p)\n", ciptr);
+ prmsg (3, "SocketCongestionChange(%p)\n", (void *) ciptr);
proxy_conn = (_NXProxyConnInfo *) ciptr->priv;
@@ -700,7 +700,7 @@ TRANS(SocketINETGetAddr) (XtransConnInfo ciptr)
void *socknamePtr;
SOCKLEN_T namelen;
- prmsg (3,"SocketINETGetAddr(%p)\n", ciptr);
+ prmsg (3,"SocketINETGetAddr(%p)\n", (void *) ciptr);
#if defined(IPv6) && defined(AF_INET6)
namelen = sizeof(socknamev6);
@@ -777,7 +777,7 @@ TRANS(SocketINETGetPeerAddr) (XtransConnInfo ciptr)
bzero(socknamePtr, namelen);
- prmsg (3,"SocketINETGetPeerAddr(%p)\n", ciptr);
+ prmsg (3,"SocketINETGetPeerAddr(%p)\n", (void *) ciptr);
if (getpeername (ciptr->fd, (struct sockaddr *) socknamePtr,
(void *)&namelen) < 0)
@@ -1208,7 +1208,7 @@ TRANS(SocketCreateListener) (XtransConnInfo ciptr,
int fd = ciptr->fd;
int retry;
- prmsg (3, "SocketCreateListener(%p,%d)\n", ciptr, fd);
+ prmsg (3, "SocketCreateListener(%p,%d)\n", (void *) ciptr, fd);
if (Sockettrans2devtab[ciptr->index].family == AF_INET
#if defined(IPv6) && defined(AF_INET6)
@@ -1549,7 +1549,7 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
abstract = ciptr->transptr->flags & TRANS_ABSTRACT;
#endif
- prmsg (3, "SocketUNIXResetListener(%p,%d)\n", ciptr, ciptr->fd);
+ prmsg (3, "SocketUNIXResetListener(%p,%d)\n", (void *) ciptr, ciptr->fd);
if (!abstract && (
stat (unsock->sun_path, &statb) == -1 ||
@@ -1629,7 +1629,7 @@ TRANS(SocketINETAccept) (XtransConnInfo ciptr, int *status)
struct sockaddr_in sockname;
SOCKLEN_T namelen = sizeof(sockname);
- prmsg (2, "SocketINETAccept(%p,%d)\n", ciptr, ciptr->fd);
+ prmsg (2, "SocketINETAccept(%p,%d)\n", (void *) ciptr, ciptr->fd);
if ((newciptr = calloc (1, sizeof(struct _XtransConnInfo))) == NULL)
{
@@ -1705,7 +1705,7 @@ TRANS(SocketUNIXAccept) (XtransConnInfo ciptr, int *status)
struct sockaddr_un sockname;
SOCKLEN_T namelen = sizeof sockname;
- prmsg (2, "SocketUNIXAccept(%p,%d)\n", ciptr, ciptr->fd);
+ prmsg (2, "SocketUNIXAccept(%p,%d)\n", (void *) ciptr, ciptr->fd);
if ((newciptr = calloc (1, sizeof(struct _XtransConnInfo))) == NULL)
{
@@ -2491,7 +2491,7 @@ TRANS(SocketBytesReadable) (XtransConnInfo ciptr, BytesReadable_t *pend)
{
prmsg (2,"SocketBytesReadable(%p,%d,%p)\n",
- ciptr, ciptr->fd, pend);
+ (void *) ciptr, ciptr->fd, (void *) pend);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
@@ -2666,7 +2666,7 @@ static int
TRANS(SocketRead) (XtransConnInfo ciptr, char *buf, int size)
{
- prmsg (2,"SocketRead(%d,%p,%d)\n", ciptr->fd, buf, size);
+ prmsg (2,"SocketRead(%d,%p,%d)\n", ciptr->fd, (void *) buf, size);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
@@ -2791,7 +2791,7 @@ static int
TRANS(SocketReadv) (XtransConnInfo ciptr, struct iovec *buf, int size)
{
- prmsg (2,"SocketReadv(%d,%p,%d)\n", ciptr->fd, buf, size);
+ prmsg (2,"SocketReadv(%d,%p,%d)\n", ciptr->fd, (void *) buf, size);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
@@ -2883,7 +2883,7 @@ static int
TRANS(SocketWritev) (XtransConnInfo ciptr, struct iovec *buf, int size)
{
- prmsg (2,"SocketWritev(%d,%p,%d)\n", ciptr->fd, buf, size);
+ prmsg (2,"SocketWritev(%d,%p,%d)\n", ciptr->fd, (void *) buf, size);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
@@ -2985,7 +2985,7 @@ static int
TRANS(SocketWrite) (XtransConnInfo ciptr, char *buf, int size)
{
- prmsg (2,"SocketWrite(%d,%p,%d)\n", ciptr->fd, buf, size);
+ prmsg (2,"SocketWrite(%d,%p,%d)\n", ciptr->fd, (void *) buf, size);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
@@ -3062,7 +3062,7 @@ static int
TRANS(SocketDisconnect) (XtransConnInfo ciptr)
{
- prmsg (2,"SocketDisconnect(%p,%d)\n", ciptr, ciptr->fd);
+ prmsg (2,"SocketDisconnect(%p,%d)\n", (void *) ciptr, ciptr->fd);
#ifdef WIN32
{
@@ -3081,7 +3081,7 @@ static int
TRANS(SocketINETClose) (XtransConnInfo ciptr)
{
- prmsg (2,"SocketINETClose(%p,%d)\n", ciptr, ciptr->fd);
+ prmsg (2,"SocketINETClose(%p,%d)\n", (void *) ciptr, ciptr->fd);
#ifdef WIN32
{
@@ -3109,7 +3109,7 @@ TRANS(SocketUNIXClose) (XtransConnInfo ciptr)
struct sockaddr_un *sockname = (struct sockaddr_un *) ciptr->addr;
int ret;
- prmsg (2,"SocketUNIXClose(%p,%d)\n", ciptr, ciptr->fd);
+ prmsg (2,"SocketUNIXClose(%p,%d)\n", (void *) ciptr, ciptr->fd);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
@@ -3165,7 +3165,7 @@ TRANS(SocketUNIXCloseForCloning) (XtransConnInfo ciptr)
int ret;
prmsg (2,"SocketUNIXCloseForCloning(%p,%d)\n",
- ciptr, ciptr->fd);
+ (void *) ciptr, ciptr->fd);
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
diff --git a/nx-X11/lib/xtrans/Xtransutil.c b/nx-X11/lib/xtrans/Xtransutil.c
index 63f0fc355..4b5bcf2a7 100644
--- a/nx-X11/lib/xtrans/Xtransutil.c
+++ b/nx-X11/lib/xtrans/Xtransutil.c
@@ -91,7 +91,7 @@ TRANS(ConvertAddress)(int *familyp, int *addrlenp, Xtransaddr **addrp)
{
- prmsg(2,"ConvertAddress(%d,%d,%p)\n",*familyp,*addrlenp,*addrp);
+ prmsg(2,"ConvertAddress(%d,%d,%p)\n",*familyp,*addrlenp,(void *) *addrp);
switch( *familyp )
{