summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-02-27 11:51:05 -0500
committerJan Vesely <jan.vesely@rutgers.edu>2015-03-14 17:02:06 -0400
commit65041c4a19bc6d1cc86f768259b9e0888af0bd5f (patch)
tree59f620723f2b32e1028c9608ec510bafe73a2f70 /tests
parentf11b8c955c270dc4030de58529f2016daa4b91f7 (diff)
Fix type-limits, pointer-arith and sign-compare warnings
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <eil.l.velikov@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/dristat.c4
-rw-r--r--tests/getstats.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/dristat.c b/tests/dristat.c
index 449aa242..992ceb40 100644
--- a/tests/dristat.c
+++ b/tests/dristat.c
@@ -189,9 +189,9 @@ static void printhuman(unsigned long value, const char *name, int mult)
static void getstats(int fd, int i)
{
drmStatsT prev, curr;
- int j;
+ unsigned j;
double rate;
-
+
printf(" System statistics:\n");
if (drmGetStats(fd, &prev)) return;
diff --git a/tests/getstats.c b/tests/getstats.c
index 8d40d0b3..8a7d2999 100644
--- a/tests/getstats.c
+++ b/tests/getstats.c
@@ -45,8 +45,6 @@ int main(int argc, char **argv)
ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats);
assert(ret == 0);
- assert(stats.count >= 0);
-
close(fd);
return 0;
}