diff options
author | swapnili <swapnil.ingle@nutanix.com> | 2020-11-30 18:57:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 18:57:23 +0100 |
commit | af96383f32eae7b07a2d70b6bcabe5f7c2bede98 (patch) | |
tree | 05f2dff1071baf58f1736b353d7cd228df557512 /samples | |
parent | bc2b5f0ca7adfaeabbcb9e9c4145ec8b84ee985a (diff) | |
download | libvfio-user-af96383f32eae7b07a2d70b6bcabe5f7c2bede98.zip libvfio-user-af96383f32eae7b07a2d70b6bcabe5f7c2bede98.tar.gz libvfio-user-af96383f32eae7b07a2d70b6bcabe5f7c2bede98.tar.bz2 |
Misc cleanup (#138)
* Rename vfu_ctx_destroy() to vfu_destroy_ctx()
* Remove unused function copy_sparse_mmap_area()
* Coding style fixes
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/gpio-pci-idio-16.c | 2 | ||||
-rw-r--r-- | samples/null.c | 2 | ||||
-rw-r--r-- | samples/server.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c index 86d5177..17dfdaa 100644 --- a/samples/gpio-pci-idio-16.c +++ b/samples/gpio-pci-idio-16.c @@ -136,7 +136,7 @@ main(int argc, char *argv[]) } out: - vfu_ctx_destroy(vfu_ctx); + vfu_destroy_ctx(vfu_ctx); return ret; } diff --git a/samples/null.c b/samples/null.c index 1998a08..99e35cc 100644 --- a/samples/null.c +++ b/samples/null.c @@ -102,7 +102,7 @@ int main(int argc, char **argv) errno = ret; err(EXIT_FAILURE, "failed to create pthread"); } - vfu_ctx_destroy(vfu_ctx); + vfu_destroy_ctx(vfu_ctx); printf("device emulation stopped and cleaned up, press enter to exit\n"); if (getchar() == EOF) { diff --git a/samples/server.c b/samples/server.c index 7f9eefa..571e374 100644 --- a/samples/server.c +++ b/samples/server.c @@ -506,7 +506,7 @@ int main(int argc, char *argv[]) strerror(-ret)); } - vfu_ctx_destroy(vfu_ctx); + vfu_destroy_ctx(vfu_ctx); free(server_data.bar1); return EXIT_SUCCESS; } |