packages/net/radsecproxy/patches/100-fix-debug-tid.patch

12 lines
375 B
Diff
Raw Normal View History

--- a/debug.c
+++ b/debug.c
@@ -153,7 +153,7 @@ void debug_logit(uint8_t level, const ch
if (debug_tid) {
tidbuf = malloc((3*sizeof(pthread_t)+5)+strlen(format));
- sprintf(tidbuf, "(%ld) %s", pthread_self(), format);
+ sprintf(tidbuf, "(%ld) %s", (long int)pthread_self(), format);
format = tidbuf;
} else
tidbuf = NULL;