summaryrefslogtreecommitdiff
path: root/tests/gem_pwrite_snooped.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_pwrite_snooped.c')
-rw-r--r--tests/gem_pwrite_snooped.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gem_pwrite_snooped.c b/tests/gem_pwrite_snooped.c
index 5783e3b2..b1933956 100644
--- a/tests/gem_pwrite_snooped.c
+++ b/tests/gem_pwrite_snooped.c
@@ -78,17 +78,17 @@ static void blit(drm_intel_bo *dst, drm_intel_bo *src,
static void *memchr_inv(const void *s, int c, size_t n)
{
- const unsigned char *us = s;
- unsigned char uc = c;
+ const uint8_t *us = s;
+ const uint8_t uc = c;
- while (n--) {
- if (*us != uc)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
+ while (n--) {
+ if (*us != uc)
return (void *) us;
-#pragma GCC diagnostic pop
us++;
}
+#pragma GCC diagnostic pop
return NULL;
}