Mercurial > dwindows
changeset 822:eaaef18d5b21
Fix various compiler warnings on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 26 Mar 2011 13:17:37 +0000 |
parents | 00fa951abeb5 |
children | fd775ade945f |
files | os2/dw.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Sat Mar 26 13:00:47 2011 +0000 +++ b/os2/dw.c Sat Mar 26 13:17:37 2011 +0000 @@ -909,7 +909,8 @@ /* If we have a notebook we resize the page again. */ if(strncmp(tmpbuf, "#40", 4)==0) { - unsigned long x, y, width, height; + long x, y; + unsigned long width, height; ULONG page = (ULONG)WinSendMsg(hwnd, BKM_QUERYPAGEID, 0, MPFROM2SHORT(BKA_FIRST, BKA_MAJOR)); while(page) @@ -2752,7 +2753,8 @@ PAGESELECTNOTIFY *psn = (PAGESELECTNOTIFY *)mp2; HWND pagehwnd = (HWND)WinSendMsg(psn->hwndBook, BKM_QUERYPAGEWINDOWHWND, MPFROMLONG(psn->ulPageIdNew), 0); Box *pagebox = (Box *)WinQueryWindowPtr(pagehwnd, QWP_USER); - unsigned long x, y, width, height; + long x, y; + unsigned long width, height; RECTL rc; if(pagebox && psn->ulPageIdNew != psn->ulPageIdCur) @@ -9176,7 +9178,7 @@ */ char *dw_clipboard_get_text() { - return ""; + return NULL; } /* @@ -9187,7 +9189,9 @@ */ void dw_clipboard_set_text( char *str, int len ) { - return; + str = str; + len = len; + return; } /*