mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
os: xtrans: silence printf format warning on prmsg() call
size_t is unsigned, but might have different sizes depending on CPU arch, so casting it to unsigned long, so we can safely use %ld. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
4615067264
commit
fbc8463e84
@@ -1340,7 +1340,7 @@ static int _XSERVTransSocketRead (
|
||||
static ssize_t _XSERVTransSocketWrite (
|
||||
XtransConnInfo ciptr, const char *buf, size_t size)
|
||||
{
|
||||
prmsg (2,"SocketWrite(%d,%p,%ld)\n", ciptr->fd, (void *) buf, (unsigned long)size);
|
||||
prmsg (2,"SocketWrite(%d,%p,%lu)\n", ciptr->fd, (void *) buf, (unsigned long)size);
|
||||
|
||||
#if XTRANS_SEND_FDS
|
||||
if (ciptr->send_fds)
|
||||
|
||||
Reference in New Issue
Block a user