From aab9c53857c585b328f923ee03f23d97e4352e8d Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sat, 9 Jul 2016 14:12:54 +0300 Subject: [PATCH] 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 --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.44.0