diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2016-07-04 00:28:47 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-05 13:32:05 +0200 |
commit | f6a1bda2dff0c70aa13f3cb763a9b08c4c037c53 (patch) | |
tree | 13abc7de22c00d7ab9080c47df749afbe94d8f85 /nx-X11/programs/Xserver/randr/rrproviderproperty.c | |
parent | ff81a52695821704a3eb33e8de8bb7fe55bccfe1 (diff) | |
download | nx-libs-f6a1bda2dff0c70aa13f3cb763a9b08c4c037c53.tar.gz nx-libs-f6a1bda2dff0c70aa13f3cb763a9b08c4c037c53.tar.bz2 nx-libs-f6a1bda2dff0c70aa13f3cb763a9b08c4c037c53.zip |
Remove unneccesary casts from WriteToClient calls
Casting return to (void) was used to tell lint that you intended
to ignore the return value, so it didn't warn you about it.
Casting the third argument to (char *) was used as the most generic
pointer type in the days before compilers supported C89 (void *)
(except for a couple places it's used for byte-sized pointer math).
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Daniel Stone <daniel@fooishbar.org>
Backport to nx-libs: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/randr/rrproviderproperty.c')
-rw-r--r-- | nx-X11/programs/Xserver/randr/rrproviderproperty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/randr/rrproviderproperty.c b/nx-X11/programs/Xserver/randr/rrproviderproperty.c index 303719909..9ac4eb09d 100644 --- a/nx-X11/programs/Xserver/randr/rrproviderproperty.c +++ b/nx-X11/programs/Xserver/randr/rrproviderproperty.c @@ -432,7 +432,7 @@ ProcRRListProviderProperties(ClientPtr client) *temppAtoms++ = prop->propertyName; WriteToClient(client, sizeof(xRRListProviderPropertiesReply), - (char *) &rep); + &rep); if (numProps) { client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write; WriteSwappedDataToClient(client, numProps * sizeof(Atom), pAtoms); @@ -479,7 +479,7 @@ ProcRRQueryProviderProperty(ClientPtr client) swaps(&rep.sequenceNumber); swapl(&rep.length); } - WriteToClient(client, sizeof(xRRQueryProviderPropertyReply), (char *) &rep); + WriteToClient(client, sizeof(xRRQueryProviderPropertyReply), &rep); if (prop->num_valid) { memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32)); client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write; @@ -642,7 +642,7 @@ ProcRRGetProviderProperty(ClientPtr client) swapl(&reply.nItems); } WriteToClient(client, sizeof(xRRGetProviderPropertyReply), - (char *) &reply); + &reply); return Success; } @@ -671,7 +671,7 @@ ProcRRGetProviderProperty(ClientPtr client) swapl(&reply.nItems); } WriteToClient(client, sizeof(xRRGetProviderPropertyReply), - (char *) &reply); + &reply); return Success; } @@ -724,7 +724,7 @@ ProcRRGetProviderProperty(ClientPtr client) swapl(&reply.bytesAfter); swapl(&reply.nItems); } - WriteToClient(client, sizeof(xGenericReply), (char *) &reply); + WriteToClient(client, sizeof(xGenericReply), &reply); if (len) { memcpy(extra, (char *) prop_value->data + ind, len); switch (reply.format) { |