diff options
author | Julien Cristau <[email protected]> | 2014-03-03 17:41:56 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-03-08 20:43:54 +0000 |
commit | cf1c52575d6fea966d818eac4a32ec2decc48576 (patch) | |
tree | ebbbe08c3a3871490117c6ee0eada0246ec0a4ba /src/gbm/main/gbm.c | |
parent | 330a3799d055a37f3a5d191519f9ff687024f81b (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]>
Diffstat (limited to 'src/gbm/main/gbm.c')
-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 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; |