summaryrefslogtreecommitdiff
path: root/src/scheme/ao_scheme_error.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-12 17:54:03 -0800
committerKeith Packard <keithp@keithp.com>2017-12-12 18:09:11 -0800
commit4bfce37e7567d9c2a09ea4da8113e7639516ed6e (patch)
treebb2e679a33302d5bc655dc5b150f4edccdd29959 /src/scheme/ao_scheme_error.c
parent28dbe9a04b16f79db255baecbf0cd486c510ef58 (diff)
altos/scheme: apply const to places taking const strings.
Mostly printf and friends. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/ao_scheme_error.c')
-rw-r--r--src/scheme/ao_scheme_error.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scheme/ao_scheme_error.c b/src/scheme/ao_scheme_error.c
index d580a2c0..c015c76a 100644
--- a/src/scheme/ao_scheme_error.c
+++ b/src/scheme/ao_scheme_error.c
@@ -16,7 +16,7 @@
#include <stdarg.h>
void
-ao_scheme_error_poly(char *name, ao_poly poly, ao_poly last)
+ao_scheme_error_poly(const char *name, ao_poly poly, ao_poly last)
{
int first = 1;
printf("\t\t%s(", name);
@@ -50,7 +50,7 @@ static void tabs(int indent)
}
void
-ao_scheme_error_frame(int indent, char *name, struct ao_scheme_frame *frame)
+ao_scheme_error_frame(int indent, const char *name, struct ao_scheme_frame *frame)
{
int f;
@@ -83,7 +83,7 @@ ao_scheme_error_frame(int indent, char *name, struct ao_scheme_frame *frame)
}
void
-ao_scheme_vprintf(char *format, va_list args)
+ao_scheme_vprintf(const char *format, va_list args)
{
char c;
@@ -112,7 +112,7 @@ ao_scheme_vprintf(char *format, va_list args)
}
void
-ao_scheme_printf(char *format, ...)
+ao_scheme_printf(const char *format, ...)
{
va_list args;
va_start(args, format);
@@ -121,7 +121,7 @@ ao_scheme_printf(char *format, ...)
}
ao_poly
-ao_scheme_error(int error, char *format, ...)
+ao_scheme_error(int error, const char *format, ...)
{
va_list args;