Changeset 108 for trunk/common_functions


Ignore:
Timestamp:
Oct 4, 2023, 6:18:02 PM (23 months ago)
Author:
gyoung
Message:

Fix all the warnings and errors reported by CPPCheck.

Location:
trunk/common_functions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/common_functions/message.c

    r104 r108  
    189189#define TLENGTH 256L
    190190
    191   if(NULLHANDLE==(pText=malloc(TLENGTH*2*sizeof(char))))
     191  if(NULL==(pText=malloc(TLENGTH*2*sizeof(char))))
    192192    return MBID_ERROR;
    193193
  • trunk/common_functions/uptime.c

    r4 r108  
    296296  seconds = uptime % (60L);
    297297
    298   sprintf (chrTemp, "%ld %02ld:%02ld:%02ld",
     298  sprintf (chrTemp, "%lu %02lu:%02lu:%02lu",
    299299           days, hours,
    300300          minutes, seconds);
Note: See TracChangeset for help on using the changeset viewer.