diff --git a/src/err.c b/src/err.c index 6dce5232..96788f14 100644 --- a/src/err.c +++ b/src/err.c @@ -88,7 +88,7 @@ uint32_t _err_get_threadid(void) { tid = pthread_self(); if(sizeof(pthread_t) == sizeof(int)) { - thread_id = (int)tid; + thread_id = *((int*)&tid); } else { thread_id = util_djb_hash_block((unsigned char *)&tid,sizeof(pthread_t)); } diff --git a/src/util.c b/src/util.c index efa56d35..905f5dec 100644 --- a/src/util.c +++ b/src/util.c @@ -29,7 +29,7 @@ uint32_t util_djb_hash_block(unsigned char *data, uint32_t len) { uint32_t util_djb_hash_str(char *str) { uint32_t len; - len = strlen(str); + len = (uint32_t)strlen(str); return util_djb_hash_block((unsigned char *)str,len); } diff --git a/win32/mt-daapd.vcproj b/win32/mt-daapd.vcproj index ef6f2d34..167e5ff5 100644 --- a/win32/mt-daapd.vcproj +++ b/win32/mt-daapd.vcproj @@ -219,6 +219,9 @@ + +