summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/thread.c2
-rw-r--r--server/log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/thread.c b/client/thread.c
index 58c79a3..c9ae4b9 100644
--- a/client/thread.c
+++ b/client/thread.c
@@ -13,7 +13,7 @@ thread_id()
{
short i;
- i = ((unsigned int)pthread_self() & 0xff) | (getpid() << 8);
+ i = ((uint64_t)pthread_self() & 0xff) | (getpid() << 8);
return i;
}
diff --git a/server/log.c b/server/log.c
index 6b11209..0afc4ba 100644
--- a/server/log.c
+++ b/server/log.c
@@ -31,7 +31,7 @@ log_priority(int priority, const char *fmt, va_list args)
#endif
(void)snprintf(lbuff, sizeof(lbuff),
- "[tid: %d] %s", (int)pthread_self(), fmt);
+ "[tid: %llu] %s", (uint64_t)pthread_self(), fmt);
vsyslog(priority, lbuff, args);
#if 0