ltt-kconsumerd: Fix incorrect typing
[lttng-tools.git] / ltt-kconsumerd / ltt-kconsumerd.c
index d562c1729d10bd562e46f16e59b05b43de6c8249..a81be55e7c9dbdaed5daf63c2c68d4c6280ac1a8 100644 (file)
@@ -295,12 +295,15 @@ static int on_recv_fd(struct lttng_kconsumerd_fd *kconsumerd_fd)
 
        if (kconsumerd_fd->output == LTTNG_EVENT_MMAP) {
                /* get the len of the mmap region */
-               ret = kernctl_get_mmap_len(kconsumerd_fd->consumerd_fd, &kconsumerd_fd->mmap_len);
+               unsigned long mmap_len;
+
+               ret = kernctl_get_mmap_len(kconsumerd_fd->consumerd_fd, &mmap_len);
                if (ret != 0) {
                        ret = errno;
                        perror("kernctl_get_mmap_len");
                        goto error_close_fd;
                }
+               kconsumerd_fd->mmap_len = (size_t) mmap_len;
 
                kconsumerd_fd->mmap_base = mmap(NULL, kconsumerd_fd->mmap_len,
                                PROT_READ, MAP_PRIVATE, kconsumerd_fd->consumerd_fd, 0);
This page took 0.031011 seconds and 4 git commands to generate.