From 7c806f13ea850bff9792fb24a158a1e919454a48 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sun, 12 Mar 2023 18:10:38 -0700 Subject: [PATCH] Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings --- CHANGES | 2 ++ hist.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index f24e379..433f44e 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,8 @@ The following are the changes from calc version 2.14.1.5 to date: Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0) to OSNAME. + Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings. + The following are the changes from calc version 2.14.1.3 to 2.14.1.4: diff --git a/hist.c b/hist.c index 6441b84..c8519a7 100644 --- a/hist.c +++ b/hist.c @@ -98,7 +98,7 @@ STATIC struct { } HS; -typedef void (*FUNCPTR)(); +typedef void (*FUNCPTR)(char *); typedef struct { char *name; @@ -217,8 +217,8 @@ STATIC int save_len; STATIC KEY_MAP *cur_map; STATIC KEY_MAP *base_map; STATIC KEY_ENT key_table[MAX_KEYS]; -STATIC HIST* hist_first = NULL; -STATIC HIST* hist_last = NULL; +STATIC HIST* hist_first = NULL; +STATIC HIST hist_last = NULL; STATIC char save_buffer[SAVE_SIZE]; /* declare other static functions */