From 3276376d1be74b66970b88c3e941dcedf8d22474 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 1 Oct 2017 14:04:47 +0100 Subject: Assorted char * -> const char * API changes. I went through all the char * parameters and return values I could see in puzzles.h by eye and spotted ones that surely ought to have been const all along. --- nestedvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nestedvm.c') diff --git a/nestedvm.c b/nestedvm.c index b778280..0ad0f3f 100644 --- a/nestedvm.c +++ b/nestedvm.c @@ -17,7 +17,7 @@ extern void _pause(); extern int _call_java(int cmd, int arg1, int arg2, int arg3); -void fatal(char *fmt, ...) +void fatal(const char *fmt, ...) { va_list ap; fprintf(stderr, "fatal error: "); @@ -53,7 +53,7 @@ void frontend_default_colour(frontend *fe, float *output) output[0] = output[1]= output[2] = 0.8f; } -void nestedvm_status_bar(void *handle, char *text) +void nestedvm_status_bar(void *handle, const char *text) { _call_java(4,0,(int)text,0); } @@ -79,7 +79,7 @@ void nestedvm_unclip(void *handle) } void nestedvm_draw_text(void *handle, int x, int y, int fonttype, int fontsize, - int align, int colour, char *text) + int align, int colour, const char *text) { frontend *fe = (frontend *)handle; _call_java(5, x + fe->ox, y + fe->oy, -- cgit v1.1