summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-11-10 18:50:08 +0100
committerTorbjorn Granlund <tege@gmplib.org>2010-11-10 18:50:08 +0100
commitf40ea91f84d7250f7ccda6740f64cd7139d44205 (patch)
tree93b7ef2787301ce6bff2c976cbce3f0839e92993 /tests/misc
parentb39c8f7916a42675db4be28c411f17ee4db0575e (diff)
downloadgmp-f40ea91f84d7250f7ccda6740f64cd7139d44205.tar.gz
More of: Add 'const' to variables pointing to character strings.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/t-locale.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/misc/t-locale.c b/tests/misc/t-locale.c
index b53b9e27c..e75b217a3 100644
--- a/tests/misc/t-locale.c
+++ b/tests/misc/t-locale.c
@@ -42,7 +42,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "tests.h"
-char *decimal_point;
+const char *decimal_point;
/* Replace the libc localeconv with one we can manipulate. */
#if HAVE_LOCALECONV
@@ -50,25 +50,25 @@ struct lconv *
localeconv (void)
{
static struct lconv l;
- l.decimal_point = decimal_point;
+ l.decimal_point = (char *) decimal_point;
return &l;
}
#endif
/* Replace the libc nl_langinfo with one we can manipulate. */
#if HAVE_NL_LANGINFO
-const char *
+char *
nl_langinfo (nl_item n)
{
#if defined (DECIMAL_POINT)
if (n == DECIMAL_POINT)
- return decimal_point;
+ return (char *) decimal_point;
#endif
#if defined (RADIXCHAR)
if (n == RADIXCHAR)
- return decimal_point;
+ return (char *) decimal_point;
#endif
- return "";
+ return (char *) "";
}
#endif
@@ -106,7 +106,7 @@ check_input (void)
for (i = 0; i < numberof (point); i++)
{
- decimal_point = point[i];
+ decimal_point = (const char *) point[i];
for (neg = 0; neg <= 1; neg++)
{