From cf1c52575d6fea966d818eac4a32ec2decc48576 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 3 Mar 2014 17:41:56 +0100 Subject: 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 --- src/gbm/main/gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3