mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Fix pointer-to-int cast
Resolves "warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]"
This commit is contained in:
parent
578c94ba69
commit
e25960c548
1 changed files with 1 additions and 1 deletions
2
httpd.c
2
httpd.c
|
@ -366,7 +366,7 @@ void job_wait(xs_val **job)
|
||||||
static void *job_thread(void *arg)
|
static void *job_thread(void *arg)
|
||||||
/* job thread */
|
/* job thread */
|
||||||
{
|
{
|
||||||
int pid = (char *) arg - (char *) 0x0;
|
int pid = (int)(uintptr_t)arg;
|
||||||
|
|
||||||
srv_debug(1, xs_fmt("job thread %d started", pid));
|
srv_debug(1, xs_fmt("job thread %d started", pid));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue