# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1335914720 0 # Node ID b2311922a4dea794eb7c65d843c7599ecbe26974 # Parent 6e26c9ead2fef451dd6b5b0ae449f71f2649c1a1 Ah so... eliminated the last few VAC36 warnings on OS/2. Thanks to the Project Odin ticket #1 for explaining how to get rid of them with VisualAge. diff -r 6e26c9ead2fe -r b2311922a4de os2/dw.c --- a/os2/dw.c Tue May 01 23:12:02 2012 +0000 +++ b/os2/dw.c Tue May 01 23:25:20 2012 +0000 @@ -4816,7 +4816,7 @@ strcat(buf, "\n"); /* MLE */ - while((ptr = strstr(buf, "\n"))) + while((ptr = strstr(buf, "\n")) != NULL) { ptr[0] = 0; width = 0; @@ -6405,7 +6405,7 @@ HPIXMAP pixmap = NULL, disabled = NULL; HPOINTER icon = 0; - if ( ( pixmap = calloc( 1, sizeof(struct _hpixmap) ) ) ) + if((pixmap = calloc(1, sizeof(struct _hpixmap))) != NULL) { int z, j, lim; LONG fore; @@ -9273,7 +9273,7 @@ free(ci); - if((pCore = _dw_container_start(handle, CRA_CURSORED))) + if((pCore = _dw_container_start(handle, CRA_CURSORED)) != NULL) { NOTIFYRECORDEMPHASIS pre;