mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -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();
|
tid = pthread_self();
|
||||||
|
|
||||||
if(sizeof(pthread_t) == sizeof(int)) {
|
if(sizeof(pthread_t) == sizeof(int)) {
|
||||||
thread_id = (int)tid;
|
thread_id = *((int*)&tid);
|
||||||
} else {
|
} else {
|
||||||
thread_id = util_djb_hash_block((unsigned char *)&tid,sizeof(pthread_t));
|
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 util_djb_hash_str(char *str) {
|
||||||
uint32_t len;
|
uint32_t len;
|
||||||
|
|
||||||
len = strlen(str);
|
len = (uint32_t)strlen(str);
|
||||||
return util_djb_hash_block((unsigned char *)str,len);
|
return util_djb_hash_block((unsigned char *)str,len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,6 +219,9 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\src\smart-parser.c">
|
RelativePath="..\src\smart-parser.c">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\util.c">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\w32-eventlog.c">
|
RelativePath="..\src\w32-eventlog.c">
|
||||||
</File>
|
</File>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user