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 <emil.l.velikov@gmail.com>
This commit is contained in:
Julien Cristau 2014-03-03 17:41:56 +01:00 committed by Emil Velikov
parent 330a3799d0
commit cf1c52575d
1 changed files with 1 additions and 1 deletions

View File

@ -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;