aboutsummaryrefslogtreecommitdiff
path: root/lib/dma.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-02-18 16:01:21 +0000
committerGitHub <noreply@github.com>2021-02-18 16:01:21 +0000
commitc4f6f81007cf6ab720067d8f8e9288c5dfd5a720 (patch)
treeb407c1b6355b8d3646a4f75ccd04f6610d4ae0b3 /lib/dma.c
parent22a80ef616beaf7ac495698a4219f37efe5635c8 (diff)
downloadlibvfio-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dma.c b/lib/dma.c
index c860154..07d12b3 100644
--- a/lib/dma.c
+++ b/lib/dma.c
@@ -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;
}