X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftossim%2Ftossim.c;h=74283ccfe6c923ce03992b9e3f7a050eb03ff0a8;hb=9e3705ba405a4057c9a2ef2984a1d709bf010473;hp=5011855f0414fb97b30ce1d6d8a6072ba92a0ca9;hpb=140885c3ca51bee97acde98c673c01b95ea71c63;p=tinyos-2.x.git diff --git a/tos/lib/tossim/tossim.c b/tos/lib/tossim/tossim.c index 5011855f..74283ccf 100644 --- a/tos/lib/tossim/tossim.c +++ b/tos/lib/tossim/tossim.c @@ -113,8 +113,8 @@ variable_string_t Variable::getData() { memcpy(data, ptr, len); } else { - str.ptr = ""; - str.type = ""; + str.ptr = (char*)""; + str.type = (char*)""; str.len = strlen(""); str.isArray = 0; } @@ -166,7 +166,7 @@ void Mote::setID(unsigned long val) { } Variable* Mote::getVariable(char* name) { - char* typeStr = ""; + char* typeStr = (char*)""; int isArray; Variable* var;