projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
330a379
)
gbm: make 'devices' array static
author
Julien Cristau
<jcristau@debian.org>
Mon, 3 Mar 2014 16:41:56 +0000
(17:41 +0100)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Sat, 8 Mar 2014 20:43:54 +0000
(20:43 +0000)
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>
src/gbm/main/gbm.c
patch
|
blob
|
history
diff --git
a/src/gbm/main/gbm.c
b/src/gbm/main/gbm.c
index b057386b946b6efb85f3319d171bbc84621b0ca9..30785a66a4dde801ca27e7d045c2504eb229912e 100644
(file)
--- 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];
+st
atic st
ruct gbm_device *devices[16];
static int device_num = 0;