summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-01 19:52:55 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-01 19:52:55 -0500
commit47fbd9c2bd6c59b46fcf4c93851192cbb9240ebb (patch)
treee204d4ef83c542167c9510006ba9490c79cc4caa /locale.c
parent3819846f8ad95b40d98d0a544fd16533590e30cb (diff)
move test variables into function body
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/locale.c b/locale.c
index 9714995..238f1e2 100644
--- a/locale.c
+++ b/locale.c
@@ -2,17 +2,16 @@
#include <limits.h>
#include "test.h"
-static int locale_categories[] = {
- LC_ALL,
- LC_COLLATE,
- LC_CTYPE,
- LC_MONETARY,
- LC_NUMERIC,
-};
-
void test_locale_h(void)
{
struct lconv *lc;
+ int locale_categories[] = {
+ LC_ALL,
+ LC_COLLATE,
+ LC_CTYPE,
+ LC_MONETARY,
+ LC_NUMERIC,
+ };
testing_header("locale.h");