From 2a3e1628a50b9de7c1462ee95eb79937795f5409 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 11 Jan 2015 21:40:51 +0100 Subject: Limit more variables to file scope Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361 --- apps/plugins/imageviewer/png/tinflate.c | 2 +- apps/plugins/lua/gmtime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/plugins/imageviewer/png/tinflate.c b/apps/plugins/imageviewer/png/tinflate.c index 95d8e2b483..f873c37569 100644 --- a/apps/plugins/imageviewer/png/tinflate.c +++ b/apps/plugins/imageviewer/png/tinflate.c @@ -96,7 +96,7 @@ typedef struct { } TINF_DATA; /* static tables */ -TINF_TABLES tbl = { +static TINF_TABLES tbl = { .sltree = { .table = {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0018, 0x0098, 0x0070, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, diff --git a/apps/plugins/lua/gmtime.c b/apps/plugins/lua/gmtime.c index deb24e08c9..19ff3bc088 100644 --- a/apps/plugins/lua/gmtime.c +++ b/apps/plugins/lua/gmtime.c @@ -4,7 +4,7 @@ #define SPD 24*60*60 /* days per month -- nonleap! */ -const short __spm[13] = +static const short __spm[13] = { 0, (31), (31+28), -- cgit v1.2.3