From d562eb482f3180dcd59a332edc91027ea3844d90 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 8 Jan 2021 11:05:32 +0200 Subject: Improve use of types throughout. --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7c35139c..3fd091e9 100644 --- a/main.c +++ b/main.c @@ -96,7 +96,7 @@ char *TEXTDOMAIN; * set_CONVFMT -> fmt_index -> force_string: gets NULL CONVFMT * Fun, fun, fun, fun. */ -char *CONVFMT = "%.6g"; +const char *CONVFMT = "%.6g"; NODE *Nnull_string; /* The global null string */ @@ -145,14 +145,14 @@ static void parse_args(int argc, char **argv); static void set_locale_stuff(void); static bool stopped_early = false; -enum do_flag_values do_flags = 0; +enum do_flag_values do_flags = DO_FLAG_NONE; bool do_itrace = false; /* provide simple instruction trace */ bool do_optimize = true; /* apply default optimizations */ static int do_nostalgia = false; /* provide a blast from the past */ static int do_binary = false; /* hands off my data! */ static int do_version = false; /* print version info */ static const char *locale = ""; /* default value to setlocale */ -static char *locale_dir = LOCALEDIR; /* default locale dir */ +static const char *locale_dir = LOCALEDIR; /* default locale dir */ int use_lc_numeric = false; /* obey locale for decimal point */ -- cgit v1.2.3