Minor modifications to make it compile on linux

This commit is contained in:
Daniel Marjamäki 2007-07-18 06:37:37 +00:00
parent 93b3e2e5aa
commit ade2265ed2
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp Statements.cpp test.cpp tokenize.cpp SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp Statements.cpp tokenize.cpp
OBJS=$(SRCS:%.cpp=%.o) OBJS=$(SRCS:%.cpp=%.o)

View File

@ -76,7 +76,7 @@ static void Define(const char Name[], const char Value[])
char str[50]; char str[50];
unsigned long value = strtoul(Value+2, NULL, 16); unsigned long value = strtoul(Value+2, NULL, 16);
free(strValue); free(strValue);
sprintf(str, "%d", value); sprintf(str, "%lu", value);
strValue = strdup(str); strValue = strdup(str);
} }