From cc2529e9172373ebe4e29dbe31f2d0549079c039 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 3 Nov 2018 08:20:13 -0700 Subject: [PATCH] Make GEntryPoints const. --- mojosetup.c | 2 +- universal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mojosetup.c b/mojosetup.c index a753834..b150ec2 100644 --- a/mojosetup.c +++ b/mojosetup.c @@ -25,7 +25,7 @@ int MojoSetup_testNetworkCode(int argc, char **argv); uint8 scratchbuf_128k[128 * 1024]; -MojoSetupEntryPoints GEntryPoints = +const MojoSetupEntryPoints GEntryPoints = { xmalloc, xrealloc, diff --git a/universal.h b/universal.h index beb9db1..a47530e 100644 --- a/universal.h +++ b/universal.h @@ -372,7 +372,7 @@ typedef struct MojoSetupEntryPoints char **(*splitText)(const char *text, int scrw, int *_count, int *_w); boolean (*isValidProductKey)(const char *f, const char *k); } MojoSetupEntryPoints; -extern MojoSetupEntryPoints GEntryPoints; +extern const MojoSetupEntryPoints GEntryPoints; #ifndef DOXYGEN_SHOULD_IGNORE_THIS