mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-12 15:33:23 -05:00
Win32 fixes and cleanups
This commit is contained in:
parent
b1a5f93987
commit
8954451434
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -219,6 +219,9 @@
|
||||
<File
|
||||
RelativePath="..\src\smart-parser.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\util.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\w32-eventlog.c">
|
||||
</File>
|
||||
|
Loading…
Reference in New Issue
Block a user