From: Timo Kokkonen Date: Sat, 9 Jul 2016 11:12:54 +0000 (+0300) Subject: init_job_control: Suppress compiler warning X-Git-Url: http://git.itanic.dy.fi/?p=rrdd;a=commitdiff_plain;h=aab9c53857c585b328f923ee03f23d97e4352e8d init_job_control: Suppress compiler warning On 64 bit arch casting an int to (void *) causes a warning about different word sizes. Use long int so that the variables have same length. Signed-off-by: Timo Kokkonen --- diff --git a/process.c b/process.c index fd87b1f..35ef515 100644 --- a/process.c +++ b/process.c @@ -288,7 +288,7 @@ int init_jobcontrol(int max_jobs_requested) char buf[256]; char match[8]; pthread_t *thread; - int i; + long int i; if (pipe2(job_request_fd, O_NONBLOCK | O_CLOEXEC)) { pr_err("Failed to create pipe: %m\n");