From: Julien Cristau Date: Mon, 3 Mar 2014 16:41:56 +0000 (+0100) Subject: gbm: make 'devices' array static X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf1c52575d6fea966d818eac4a32ec2decc48576;p=platform%2Fupstream%2Fmesa.git 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 --- 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;