diff options
author | Kristian Høgsberg <krh@redhat.com> | 2016-07-04 00:21:45 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-05 13:32:04 +0200 |
commit | ff81a52695821704a3eb33e8de8bb7fe55bccfe1 (patch) | |
tree | 9715fe1b573e890469e6f79828084eee261653a8 /nx-X11/programs/Xserver/include | |
parent | 06a97857a0380f88b691ac022fa30a05d54e43e0 (diff) | |
download | nx-libs-ff81a52695821704a3eb33e8de8bb7fe55bccfe1.tar.gz nx-libs-ff81a52695821704a3eb33e8de8bb7fe55bccfe1.tar.bz2 nx-libs-ff81a52695821704a3eb33e8de8bb7fe55bccfe1.zip |
Make WriteToClient take a const void * like any decent IO write function.
Enough with the casting. Doesn't break API or even ABI, but does make
a lot of silly casts superfluos.
Diffstat (limited to 'nx-X11/programs/Xserver/include')
-rw-r--r-- | nx-X11/programs/Xserver/include/os.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/include/os.h b/nx-X11/programs/Xserver/include/os.h index 6e629c42f..26ce2706c 100644 --- a/nx-X11/programs/Xserver/include/os.h +++ b/nx-X11/programs/Xserver/include/os.h @@ -124,7 +124,7 @@ extern void FlushIfCriticalOutputPending(void); extern void SetCriticalOutputPending(void); -extern int WriteToClient(ClientPtr /*who*/, int /*count*/, char* /*buf*/); +extern int WriteToClient(ClientPtr /*who*/, int /*count*/, const void* /*__buf*/); extern void ResetOsBuffers(void); @@ -444,7 +444,7 @@ typedef struct { extern CallbackListPtr ReplyCallback; typedef struct { ClientPtr client; - void * replyData; + const void * replyData; unsigned long dataLenBytes; unsigned long bytesRemaining; Bool startOfReply; |