summaryrefslogtreecommitdiff
path: root/tests/t-constants.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-11-10 17:30:56 +0100
committerTorbjorn Granlund <tege@gmplib.org>2010-11-10 17:30:56 +0100
commitb39c8f7916a42675db4be28c411f17ee4db0575e (patch)
treeddab068ed5ac3a5181dcb1c336f546d1e70f33cc /tests/t-constants.c
parent8bd3c97538d43ab04b6ec662dfccb815561f234a (diff)
downloadgmp-b39c8f7916a42675db4be28c411f17ee4db0575e.tar.gz
Add 'const' to variables pointing to character strings.
Diffstat (limited to 'tests/t-constants.c')
-rw-r--r--tests/t-constants.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/t-constants.c b/tests/t-constants.c
index 1c267e678..d89cd23dd 100644
--- a/tests/t-constants.c
+++ b/tests/t-constants.c
@@ -24,36 +24,36 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#ifdef ULONG_MAX
-char *ulong_max_def = "defined";
+const char *ulong_max_def = "defined";
#else
-char *ulong_max_def = "not defined";
+const char *ulong_max_def = "not defined";
#endif
#ifdef LONG_MAX
-char *long_max_def = "defined";
+const char *long_max_def = "defined";
#else
-char *long_max_def = "not defined";
+const char *long_max_def = "not defined";
#endif
#ifdef UINT_MAX
-char *uint_max_def = "defined";
+const char *uint_max_def = "defined";
#else
-char *uint_max_def = "not defined";
+const char *uint_max_def = "not defined";
#endif
#ifdef INT_MAX
-char *int_max_def = "defined";
+const char *int_max_def = "defined";
#else
-char *int_max_def = "not defined";
+const char *int_max_def = "not defined";
#endif
#ifdef USHRT_MAX
-char *ushrt_max_def = "defined";
+const char *ushrt_max_def = "defined";
#else
-char *ushrt_max_def = "not defined";
+const char *ushrt_max_def = "not defined";
#endif
#ifdef SHRT_MAX
-char *shrt_max_def = "defined";
+const char *shrt_max_def = "defined";
#else
-char *shrt_max_def = "not defined";
+const char *shrt_max_def = "not defined";
#endif
#include "gmp-impl.h"