commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-commons-sandbox/daemon/src/native/nt/procrun procgui.c
Date Tue, 13 May 2003 06:33:07 GMT
mturk       2003/05/12 23:33:07

  Modified:    daemon/src/native/nt/procrun procgui.c
  Log:
  Add the 'SEVERE' message log checking.
  
  Revision  Changes    Path
  1.23      +10 -6     jakarta-commons-sandbox/daemon/src/native/nt/procrun/procgui.c
  
  Index: procgui.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/daemon/src/native/nt/procrun/procgui.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- procgui.c	9 May 2003 07:25:04 -0000	1.22
  +++ procgui.c	13 May 2003 06:33:07 -0000	1.23
  @@ -189,17 +189,21 @@
       }
       else {
           int off = 0;
  -        if (!strncmp(str, "INFO:", 5)) {
  +        if (STRN_COMPARE(str, "INFO:")) {
               ac_lv_iicon = 0;
  -            off = 6;
  +            off = STRN_SIZE("INFO:") + 1;
           }
  -        else if (!strncmp(str, "WARNING:", 8)) {
  +        else if (STRN_COMPARE(str, "WARNING:")) {
               ac_lv_iicon = 1;
  -            off = 9;
  +            off = STRN_SIZE("WARNING:") + 1;
           }
  -        else if (!strncmp(str, "ERROR:", 6)) {
  +        else if (STRN_COMPARE(str, "ERROR:")) {
               ac_lv_iicon = 2;
  -            off = 7;
  +            off = STRN_SIZE("ERROR:") + 1;
  +        }
  +        else if (STRN_COMPARE(str, "SEVERE:")) {
  +            ac_lv_iicon = 2;
  +            off = STRN_SIZE("SEVERE:") + 1;
           }
           memset(&lvi, 0, sizeof(LV_ITEM));
           lvi.mask        = LVIF_IMAGE | LVIF_TEXT;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message