summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2011-09-15 15:10:52 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-09-15 19:38:04 +0200
commit19fef544ebcd7358633db56027f893cacca7ef88 (patch)
treec53f0f5064f7210aaa7faf8fcc2826042739c1c6
parent733a1d9f3441eec77c272648d0df7eea010b8f44 (diff)
testdisplay: fix compiler warnings
testdisplay.c:117:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:125:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:145:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:1060:16: warning: comparison between signed and unsigned integer expressions Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/testdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 1d85acd4..94c6e744 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -98,7 +98,7 @@ struct type_name {
#define type_name_fn(res) \
static char * res##_str(int type) { \
- int i; \
+ unsigned int i; \
for (i = 0; i < ARRAY_SIZE(res##_names); i++) { \
if (res##_names[i].type == type) \
return res##_names[i].name; \
@@ -1010,7 +1010,7 @@ int main(int argc, char **argv)
int c;
int encoders = 0, connectors = 0, crtcs = 0, framebuffers = 0;
char *modules[] = { "i915" };
- int i;
+ unsigned int i;
struct udev *u;
int ret = 0;
GIOChannel *udevchannel, *stdinchannel;