diff options
author | John Levon <john.levon@nutanix.com> | 2021-02-18 16:01:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 16:01:21 +0000 |
commit | c4f6f81007cf6ab720067d8f8e9288c5dfd5a720 (patch) | |
tree | b407c1b6355b8d3646a4f75ccd04f6610d4ae0b3 /lib/dma.c | |
parent | 22a80ef616beaf7ac495698a4219f37efe5635c8 (diff) | |
download | libvfio-user-c4f6f81007cf6ab720067d8f8e9288c5dfd5a720.zip libvfio-user-c4f6f81007cf6ab720067d8f8e9288c5dfd5a720.tar.gz libvfio-user-c4f6f81007cf6ab720067d8f8e9288c5dfd5a720.tar.bz2 |
use sizeof() consistently (#351)
The most common way we have written this is as "sizeof()"; use this form
consistently.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/dma.c')
-rw-r--r-- | lib/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,7 @@ dma_controller_remove_region(dma_controller_t *dma, * check whether memmove eliminates this warning. */ memcpy(region, &dma->regions[dma->nregions - 1], - sizeof *region); + sizeof(*region)); dma->nregions--; return 0; } |