]> git.itanic.dy.fi Git - rrdd/commitdiff
init_job_control: Suppress compiler warning
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 11:12:54 +0000 (14:12 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 11:12:54 +0000 (14:12 +0300)
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 <timo.t.kokkonen@iki.fi>
process.c

index fd87b1f88dc2b3255954489870b0d1ace66c071a..35ef51511a31e99ed7cfd3d8e1e29cc8fe5e87e3 100644 (file)
--- 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;
        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");
 
        if (pipe2(job_request_fd, O_NONBLOCK | O_CLOEXEC)) {
                pr_err("Failed to create pipe: %m\n");