diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
commit | 487eb17ec075dd2bdc91f78b41577b070d90f8f5 (patch) | |
tree | 1dccfa3836a48cf917934fe5dd01210d9d60d236 /ext | |
parent | 9f16707b0b8ec62de67394bf4884408eb65f2a7a (diff) | |
download | infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.tar.gz infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.zip |
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/kissdb/kissdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kissdb/kissdb.c b/ext/kissdb/kissdb.c index 28346a47..e5ee9979 100644 --- a/ext/kissdb/kissdb.c +++ b/ext/kissdb/kissdb.c @@ -179,7 +179,7 @@ int KISSDB_get(KISSDB *db,const void *key,void *vbuf) kptr = (const uint8_t *)key; klen = db->key_size; while (klen) { - n = fread(tmp,1,(klen > sizeof(tmp)) ? sizeof(tmp) : klen,db->f); + n = (long)fread(tmp,1,(klen > sizeof(tmp)) ? sizeof(tmp) : klen,db->f); if (n > 0) { if (memcmp(kptr,tmp,n)) goto get_no_match_next_hash_table; @@ -224,7 +224,7 @@ int KISSDB_put(KISSDB *db,const void *key,const void *value) kptr = (const uint8_t *)key; klen = db->key_size; while (klen) { - n = fread(tmp,1,(klen > sizeof(tmp)) ? sizeof(tmp) : klen,db->f); + n = (long)fread(tmp,1,(klen > sizeof(tmp)) ? sizeof(tmp) : klen,db->f); if (n > 0) { if (memcmp(kptr,tmp,n)) goto put_no_match_next_hash_table; |