diff options
author | Julien Cristau <jcristau@debian.org> | 2014-03-03 17:41:56 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2014-03-08 20:43:54 +0000 |
commit | cf1c52575d6fea966d818eac4a32ec2decc48576 (patch) | |
tree | ebbbe08c3a3871490117c6ee0eada0246ec0a4ba /src/gbm | |
parent | 330a3799d055a37f3a5d191519f9ff687024f81b (diff) | |
download | external_mesa3d-cf1c52575d6fea966d818eac4a32ec2decc48576.zip external_mesa3d-cf1c52575d6fea966d818eac4a32ec2decc48576.tar.gz external_mesa3d-cf1c52575d6fea966d818eac4a32ec2decc48576.tar.bz2 |
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>
Diffstat (limited to 'src/gbm')
-rw-r--r-- | src/gbm/main/gbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index b057386..30785a6 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; |