Changeset 144 for Evidence/Evidence.cc


Ignore:
Timestamp:
01/18/10 08:41:37 (15 years ago)
Author:
ogrimm
Message:
Core system updates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Evidence/Evidence.cc

    r142 r144  
    9595  va_end(ArgumentPointer);
    9696
    97   snprintf(TBuf, sizeof(TBuf), "%s (%s): %s", StatusName, StateString[Severity], Tmp);
    98   snprintf(SBuf, sizeof(SBuf), "%s\0%d", Tmp);
    99 
     97  snprintf(TBuf, sizeof(TBuf), "%s (%s): %s", StatusName, StateString[Severity], Tmp); // Normal string
     98  snprintf(SBuf, sizeof(SBuf), "%s*%c", Tmp, (char) Severity);
     99  *(strrchr(SBuf, '*')) = '\0';  // String with severity encoding
    100100  if (Tmp != ErrorString) free(Tmp);
    101101 
     
    122122 
    123123  // Check if configuration request already in list
    124   for (int i=0; i<ConfigNum; i++) {
     124  for (unsigned int i=0; i<ConfigNum; i++) {
    125125    if (strcmp(ConfigList[i].Name, Item) == 0) {
    126126          // Return original value if still up to date
Note: See TracChangeset for help on using the changeset viewer.