summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-09 00:34:31 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:31 -0400
commit7dc8df56c16f0fd9d791511e54d4590fb5a2dbf3 (patch)
tree4c4922c90c8633a557ccd2d2f60315e6aa794fb6
parent91c6a187b89cb1ea9afc6a963106fbccca218dde (diff)
downloadmusl-7dc8df56c16f0fd9d791511e54d4590fb5a2dbf3.tar.gz
move __loc_is_allocated declaration to locale_impl.h
-rw-r--r--src/internal/locale_impl.h1
-rw-r--r--src/locale/freelocale.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/internal/locale_impl.h b/src/internal/locale_impl.h
index d5a3cc94..a0863045 100644
--- a/src/internal/locale_impl.h
+++ b/src/internal/locale_impl.h
@@ -23,6 +23,7 @@ const struct __locale_map *__get_locale(int, const char *);
const char *__mo_lookup(const void *, size_t, const char *);
const char *__lctrans(const char *, const struct __locale_map *);
const char *__lctrans_cur(const char *);
+int __loc_is_allocated(locale_t);
#define LCTRANS(msg, lc, loc) __lctrans(msg, (loc)->cat[(lc)])
#define LCTRANS_CUR(msg) __lctrans_cur(msg)
diff --git a/src/locale/freelocale.c b/src/locale/freelocale.c
index c2ae1a31..e75acd66 100644
--- a/src/locale/freelocale.c
+++ b/src/locale/freelocale.c
@@ -2,8 +2,6 @@
#include "locale_impl.h"
#include "libc.h"
-int __loc_is_allocated(locale_t);
-
void freelocale(locale_t l)
{
if (__loc_is_allocated(l)) free(l);