diff options
author | swapnili <swapnil.ingle@nutanix.com> | 2020-11-24 21:55:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 21:55:47 +0100 |
commit | 5429a84fe3b7def278ad1df6819d2ad7467ee5b0 (patch) | |
tree | e2f7be049a096eae9a16bf84d13f9dc1a62b8cd6 /samples/null.c | |
parent | d33f124c5b0335c0525187e820c6b42be0bae743 (diff) | |
download | libvfio-user-5429a84fe3b7def278ad1df6819d2ad7467ee5b0.zip libvfio-user-5429a84fe3b7def278ad1df6819d2ad7467ee5b0.tar.gz libvfio-user-5429a84fe3b7def278ad1df6819d2ad7467ee5b0.tar.bz2 |
Api refactoring (#115)
API refactoring
Diffstat (limited to 'samples/null.c')
-rw-r--r-- | samples/null.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/samples/null.c b/samples/null.c index 97c3fcf..5d52893 100644 --- a/samples/null.c +++ b/samples/null.c @@ -78,9 +78,8 @@ int main(int argc, char **argv) errx(EXIT_FAILURE, "missing MUSER socket path"); } - lm_dev_info_t dev_info = {.uuid = argv[1], .log = null_log, .log_lvl = LM_DBG }; - - lm_ctx_t *lm_ctx = lm_ctx_create(&dev_info); + lm_ctx_t *lm_ctx = lm_create_ctx(LM_TRANS_SOCK, argv[1], 0, null_log, + LM_DBG, NULL); if (lm_ctx == NULL) { err(EXIT_FAILURE, "failed to create libmuser context"); } |