summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Cristau <[email protected]>2014-03-03 17:41:56 +0100
committerEmil Velikov <[email protected]>2014-03-08 20:43:54 +0000
commitcf1c52575d6fea966d818eac4a32ec2decc48576 (patch)
treeebbbe08c3a3871490117c6ee0eada0246ec0a4ba
parent330a3799d055a37f3a5d191519f9ff687024f81b (diff)
gbm: make 'devices' array static
It's only used in this one file as far as I can tell, and exporting a symbol named 'devices' from a shared library is a recipe for trouble. Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r--src/gbm/main/gbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
index b057386b946..30785a66a4d 100644
--- a/src/gbm/main/gbm.c
+++ b/src/gbm/main/gbm.c
@@ -43,7 +43,7 @@
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
-struct gbm_device *devices[16];
+static struct gbm_device *devices[16];
static int device_num = 0;