Win32 fixes and cleanups

This commit is contained in:
Ron Pedde 2006-07-12 23:07:03 +00:00
parent b1a5f93987
commit 8954451434
3 changed files with 5 additions and 2 deletions

View File

@ -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));
}

View File

@ -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);
}

View File

@ -219,6 +219,9 @@
<File
RelativePath="..\src\smart-parser.c">
</File>
<File
RelativePath="..\src\util.c">
</File>
<File
RelativePath="..\src\w32-eventlog.c">
</File>