summaryrefslogtreecommitdiffstats
path: root/src/gbm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/main/backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c
index 4929d732b44..37ec9c16f40 100644
--- a/src/gbm/main/backend.c
+++ b/src/gbm/main/backend.c
@@ -65,7 +65,7 @@ static const struct backend_desc *
find_backend(const char *name)
{
const struct backend_desc *backend = NULL;
- int i;
+ unsigned i;
for (i = 0; i < ARRAY_SIZE(backends); ++i) {
if (strcmp(backends[i].name, name) == 0) {
@@ -82,7 +82,7 @@ _gbm_create_device(int fd)
{
const struct gbm_backend *backend = NULL;
struct gbm_device *dev = NULL;
- int i;
+ unsigned i;
const char *b;
b = getenv("GBM_BACKEND");