Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings

This commit is contained in:
Landon Curt Noll
2023-03-12 18:10:38 -07:00
parent 616bcd8d46
commit 7c806f13ea
2 changed files with 5 additions and 3 deletions

View File

@@ -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:

4
hist.c
View File

@@ -98,7 +98,7 @@ STATIC struct {
} HS;
typedef void (*FUNCPTR)();
typedef void (*FUNCPTR)(char *);
typedef struct {
char *name;
@@ -218,7 +218,7 @@ 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_last = NULL;
STATIC char save_buffer[SAVE_SIZE];
/* declare other static functions */