# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1048085903 0 # Node ID 0e6f09149eaa5cd94fd2694484cfc6a6bb67a400 # Parent 92367f4c0836a339721dfd7906a695bd025b2b50 Fixed some EMX warnings. diff -r 92367f4c0836 -r 0e6f09149eaa dwtest.c --- a/dwtest.c Wed Mar 19 09:42:41 2003 +0000 +++ b/dwtest.c Wed Mar 19 14:58:23 2003 +0000 @@ -71,7 +71,7 @@ width = DW_PIXMAP_WIDTH(hpm); height = DW_PIXMAP_HEIGHT(hpm); - dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, NULL, hpm, 0, 0 ); + dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, 0, hpm, 0, 0 ); dw_flush(); return TRUE; } @@ -118,9 +118,9 @@ y = i*(font_height+font_gap); dw_color_foreground_set( i ); sprintf( buf, "%6.6d", i+row ); - dw_draw_text( NULL, text1pm, 0, y, buf); + dw_draw_text( 0, text1pm, 0, y, buf); pLine = lp[i+row]; - dw_draw_text( NULL, text2pm, 0, y, pLine+col ); + dw_draw_text( 0, text2pm, 0, y, pLine+col ); } text_expose( textbox1, NULL, NULL); text_expose( textbox2, NULL, NULL); @@ -349,9 +349,9 @@ tree = dw_tree_new(0); dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1); - t1 = dw_tree_insert(tree, "tree item 1", 0, NULL, NULL ); - t2 = dw_tree_insert(tree, "tree item 2", 0, NULL, NULL ); - t3 = dw_tree_insert(tree, "tree item 3", 0, t2, NULL ); + t1 = dw_tree_insert(tree, "tree item 1", 0, 0, 0 ); + t2 = dw_tree_insert(tree, "tree item 2", 0, 0, 0 ); + t3 = dw_tree_insert(tree, "tree item 3", 0, t2, 0 ); /* dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); diff -r 92367f4c0836 -r 0e6f09149eaa os2/dirent.c --- a/os2/dirent.c Wed Mar 19 09:42:41 2003 +0000 +++ b/os2/dirent.c Wed Mar 19 14:58:23 2003 +0000 @@ -67,7 +67,7 @@ Word unit, infolen; char r; - if (isalpha(path[0]) && path[1] == ':') { + if (isalpha((int)path[0]) && path[1] == ':') { unit = toupper(path[0]) - '@'; path += 2; } else { @@ -101,7 +101,7 @@ _abs_path(const char *name, char *buffer, int len) { char buf[4]; - if (isalpha(name[0]) && name[1] == ':' && name[2] == '\0') { + if (isalpha((int)name[0]) && name[1] == ':' && name[2] == '\0') { buf[0] = name[0]; buf[1] = name[1]; buf[2] = '.'; diff -r 92367f4c0836 -r 0e6f09149eaa os2/dw.c --- a/os2/dw.c Wed Mar 19 09:42:41 2003 +0000 +++ b/os2/dw.c Wed Mar 19 14:58:23 2003 +0000 @@ -7961,7 +7961,7 @@ { if(sigfunc) { - int timerid = WinStartTimer(dwhab, NULLHANDLE, timerid, interval); + int timerid = WinStartTimer(dwhab, NULLHANDLE, 0, interval); if(timerid) {