From 3bb43f1260ec30e919d11a554ab4e0d29dd9312e Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Fri, 19 Feb 2016 12:08:10 +0100 Subject: 1. Fix warnings in test_multithread app 2. Fix memory leak in transform view 3. Enchance test_pcipywrap with command line parsing --- apps/test_multithread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/test_multithread.c') diff --git a/apps/test_multithread.c b/apps/test_multithread.c index cad4cd9..19026cc 100644 --- a/apps/test_multithread.c +++ b/apps/test_multithread.c @@ -28,7 +28,7 @@ void *get_prop(void *arg) printf("err pcilib_get_value_as_int\n"); return NULL; } - printf("reg = %i\n", value); + printf("reg = %lu\n", value); } return NULL; } @@ -63,7 +63,7 @@ void *read_reg(void *arg) printf("err pcilib_get_value_as_int\n"); return NULL; } - printf("reg = %i\n", value); + printf("reg = %lu\n", value); } return NULL; } @@ -79,8 +79,6 @@ int main(int argc, char *argv[]) int threads = atoi( argv[4] ); pcilib_t *ctx = pcilib_open(argv[1], argv[2]); - int err; - pcilib_value_t val = {0}; for(int i = 0; i < threads; i++) { -- cgit v1.2.3