summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-19 12:08:10 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-19 12:08:10 +0100
commit3bb43f1260ec30e919d11a554ab4e0d29dd9312e (patch)
treeffc2371b461b3d8eb70c607c2e2e33684adbd752 /apps
parent52eb7f4fb76ddf99dedf44332aae7af4df76ab36 (diff)
downloadpcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.tar.gz
pcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.tar.bz2
pcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.tar.xz
pcitool-3bb43f1260ec30e919d11a554ab4e0d29dd9312e.zip
1. Fix warnings in test_multithread app
2. Fix memory leak in transform view 3. Enchance test_pcipywrap with command line parsing
Diffstat (limited to 'apps')
-rw-r--r--apps/test_multithread.c6
1 files changed, 2 insertions, 4 deletions
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++)
{