X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Ftossim%2Ftossim.c;h=74283ccfe6c923ce03992b9e3f7a050eb03ff0a8;hp=5011855f0414fb97b30ce1d6d8a6072ba92a0ca9;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 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;