diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/reds_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/reds_stat.c b/tools/reds_stat.c index 39d17afe..5e9705c7 100644 --- a/tools/reds_stat.c +++ b/tools/reds_stat.c @@ -84,7 +84,7 @@ int main(int argc, char **argv) return -1; } shm_size = sizeof(SpiceStat); - reds_stat = mmap(NULL, shm_size, PROT_READ, MAP_SHARED, fd, 0); + reds_stat = (SpiceStat *)mmap(NULL, shm_size, PROT_READ, MAP_SHARED, fd, 0); if (reds_stat == (SpiceStat *)MAP_FAILED) { perror("mmap"); goto error1; |