]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripting.c
FIX: downloaded a fresh clone from my fork, and took away the build-errors.
[proxmark3-svn] / client / scripting.c
index f0c56baf0951537a75683234db7a132e2e31d109..cc59f995bfc36255ab403e0fe502f2011f902399 100644 (file)
@@ -268,8 +268,8 @@ static int l_crc16(lua_State *L)
 {
        size_t size;
        const char *p_str = luaL_checklstring(L, 1, &size);
-       
-       unsigned short retval = crc16_ccitt( p_str, size);
+               
+       uint16_t retval = crc16_ccitt( (uint8_t*) p_str, size);
     lua_pushinteger(L, (int) retval);
     return 1;
 }
Impressum, Datenschutz