diff options
Diffstat (limited to 'bin/nv_rdfunc.h')
-rw-r--r-- | bin/nv_rdfunc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/nv_rdfunc.h b/bin/nv_rdfunc.h index c9c2aea22..6def1b229 100644 --- a/bin/nv_rdfunc.h +++ b/bin/nv_rdfunc.h @@ -15,7 +15,8 @@ int main(int argc, char **argv) { - struct nvif_device *device; + struct nvif_client client; + struct nvif_device _device, *device = &_device; char *rstr = NULL; enum { NORMAL, @@ -49,7 +50,7 @@ main(int argc, char **argv) } ret = u_device("lib", argv[0], "fatal", DETECT, true, 0, - 0x00000000, &device); + 0x00000000, &client, device); if (ret) return ret; @@ -133,6 +134,7 @@ main(int argc, char **argv) } free(data); - nvif_device_ref(NULL, &device); + nvif_device_fini(device); + nvif_client_fini(&client); return 0; } |