const parameter
diff --git a/demo/mtest_opponent.c b/demo/mtest_opponent.c
index 7fbd35e..e77fec9 100644
--- a/demo/mtest_opponent.c
+++ b/demo/mtest_opponent.c
@@ -6,7 +6,7 @@
#define LTM_MTEST_RAND_SEED 23
#endif
-static void draw(mp_int *a)
+static void draw(const mp_int *a)
{
ndraw(a, "");
}
diff --git a/demo/shared.c b/demo/shared.c
index e47e481..4e98808 100644
--- a/demo/shared.c
+++ b/demo/shared.c
@@ -1,6 +1,6 @@
#include "shared.h"
-void ndraw(mp_int *a, const char *name)
+void ndraw(const mp_int *a, const char *name)
{
char *buf = NULL;
int size;
diff --git a/demo/shared.h b/demo/shared.h
index 4d5eb53..14818ac 100644
--- a/demo/shared.h
+++ b/demo/shared.h
@@ -17,5 +17,5 @@
#define MP_WUR /* TODO: result checks disabled for now */
#include "tommath_private.h"
-extern void ndraw(mp_int* a, const char* name);
+extern void ndraw(const mp_int* a, const char* name);
extern void print_header(void);