summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2013-11-25 09:09:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-25 10:04:49 +0000
commit175b8711f8c90e7977aec5564f5c29588fa14469 (patch)
tree53abe75da3874fce5ba747da0dc25949d1c607fd
parent7b235c92bbc6c7306ffef8caac5f07448c78d956 (diff)
uxa,legacy: use unsigned for comparition of unsigned
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
-rw-r--r--src/legacy/i810/i810_common.h4
-rw-r--r--src/legacy/i810/i810_ring.h2
-rw-r--r--src/uxa/uxa-glyphs.c2
-rw-r--r--test/lowlevel-blt-bench.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/legacy/i810/i810_common.h b/src/legacy/i810/i810_common.h
index efa2a7d3..4cc10e8b 100644
--- a/src/legacy/i810/i810_common.h
+++ b/src/legacy/i810/i810_common.h
@@ -65,7 +65,7 @@
static inline void memset_volatile(volatile void *b, int c, size_t len)
{
- int i;
+ unsigned i;
for (i = 0; i < len; i++)
((volatile char *)b)[i] = c;
@@ -74,7 +74,7 @@ static inline void memset_volatile(volatile void *b, int c, size_t len)
static inline void memcpy_volatile(volatile void *dst, const void *src,
size_t len)
{
- int i;
+ unsigned i;
for (i = 0; i < len; i++)
((volatile char *)dst)[i] = ((const volatile char *)src)[i];
diff --git a/src/legacy/i810/i810_ring.h b/src/legacy/i810/i810_ring.h
index e6e354fd..a3be86eb 100644
--- a/src/legacy/i810/i810_ring.h
+++ b/src/legacy/i810/i810_ring.h
@@ -73,7 +73,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define BEGIN_LP_RING(n) \
unsigned int outring, ringmask, ringused = 0; \
volatile unsigned char *virt; \
- int needed; \
+ unsigned needed; \
if ((n) & 1) \
ErrorF("BEGIN_LP_RING called with odd argument: %d\n", n); \
if ((n) > 2 && (I810_DEBUG&DEBUG_ALWAYS_SYNC)) \
diff --git a/src/uxa/uxa-glyphs.c b/src/uxa/uxa-glyphs.c
index de36fcbe..7f358632 100644
--- a/src/uxa/uxa-glyphs.c
+++ b/src/uxa/uxa-glyphs.c
@@ -146,7 +146,7 @@ static Bool uxa_realize_glyph_caches(ScreenPtr pScreen)
PIXMAN_a8,
PIXMAN_a8r8g8b8,
};
- int i;
+ unsigned i;
if (uxa_screen->glyph_cache_initialized)
return TRUE;
diff --git a/test/lowlevel-blt-bench.c b/test/lowlevel-blt-bench.c
index 0cea0a81..f2b6863e 100644
--- a/test/lowlevel-blt-bench.c
+++ b/test/lowlevel-blt-bench.c
@@ -121,7 +121,7 @@ static void bench(struct test *t, enum target target, int op, int sf)
int main(int argc, char **argv)
{
struct test test;
- int op, sf;
+ unsigned op, sf;
test_init(&test, argc, argv);