diff options
| author | 2023-05-07 04:19:37 -0700 | |
|---|---|---|
| committer | 2023-05-07 04:19:37 -0700 | |
| commit | e25960c5484392a6fd208ad3f63a483f5bbb695b (patch) | |
| tree | cf17f75755d858d66b3450ed898e530feb7c8567 /httpd.c | |
| parent | Use named semaphores (diff) | |
| download | penes-snac2-e25960c5484392a6fd208ad3f63a483f5bbb695b.tar.gz penes-snac2-e25960c5484392a6fd208ad3f63a483f5bbb695b.tar.xz penes-snac2-e25960c5484392a6fd208ad3f63a483f5bbb695b.zip | |
Fix pointer-to-int cast
Resolves "warning: performing pointer subtraction with a null pointer
has undefined behavior [-Wnull-pointer-subtraction]"
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -366,7 +366,7 @@ void job_wait(xs_val **job) | |||
| 366 | static void *job_thread(void *arg) | 366 | static void *job_thread(void *arg) |
| 367 | /* job thread */ | 367 | /* job thread */ |
| 368 | { | 368 | { |
| 369 | int pid = (char *) arg - (char *) 0x0; | 369 | int pid = (int)(uintptr_t)arg; |
| 370 | 370 | ||
| 371 | srv_debug(1, xs_fmt("job thread %d started", pid)); | 371 | srv_debug(1, xs_fmt("job thread %d started", pid)); |
| 372 | 372 | ||