Module: wine Branch: master Commit: 5f4f0fa04de77ab5d7a18ce876c9a1ac3a3db12a URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f4f0fa04de77ab5d7a18ce876...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sun Nov 11 12:37:36 2007 +0000
user32: Constify some variables.
---
dlls/user32/comm16.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/comm16.c b/dlls/user32/comm16.c index 57b00d1..ef8e843 100644 --- a/dlls/user32/comm16.c +++ b/dlls/user32/comm16.c @@ -140,7 +140,7 @@ static struct DosDeviceStruct *GetDeviceStruct(int index) return NULL; }
-static int GetCommPort_ov(LPOVERLAPPED ov, int write) +static int GetCommPort_ov(const OVERLAPPED *ov, int write) { int x;
@@ -161,13 +161,13 @@ static int WinError(void) } }
-static unsigned comm_inbuf(struct DosDeviceStruct *ptr) +static unsigned comm_inbuf(const struct DosDeviceStruct *ptr) { return ((ptr->ibuf_tail > ptr->ibuf_head) ? ptr->ibuf_size : 0) + ptr->ibuf_head - ptr->ibuf_tail; }
-static unsigned comm_outbuf(struct DosDeviceStruct *ptr) +static unsigned comm_outbuf(const struct DosDeviceStruct *ptr) { return ((ptr->obuf_tail > ptr->obuf_head) ? ptr->obuf_size : 0) + ptr->obuf_head - ptr->obuf_tail; @@ -360,7 +360,7 @@ static void comm_waitwrite(struct DosDeviceStruct *ptr) /***************************************************************************** * COMM16_DCBtoDCB16 (Internal) */ -static INT16 COMM16_DCBtoDCB16(LPDCB lpdcb, LPDCB16 lpdcb16) +static INT16 COMM16_DCBtoDCB16(const DCB *lpdcb, LPDCB16 lpdcb16) { if(lpdcb->BaudRate<0x10000) lpdcb16->BaudRate = lpdcb->BaudRate;