diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-03-11 00:51:43 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-03-11 00:56:17 -0400 |
commit | cc05255191413b3f376edbc600122ff085f45f7b (patch) | |
tree | f0dec4c442ec7bb3e443d89a3449be38eb125a32 /include/os.h | |
parent | bc504ffbba3dec2e3467bab8ba1ac25db6dd317e (diff) |
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 'include/os.h')
-rw-r--r-- | include/os.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/os.h b/include/os.h index 4be6b8010..c0f04c6af 100644 --- a/include/os.h +++ b/include/os.h @@ -115,7 +115,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); @@ -448,7 +448,7 @@ typedef struct { extern CallbackListPtr ReplyCallback; typedef struct { ClientPtr client; - pointer replyData; + const void *replyData; unsigned long dataLenBytes; unsigned long bytesRemaining; Bool startOfReply; |