diff --git a/CHANGELOG.md b/CHANGELOG.md index 006bdf9..cbbd5fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ Expected: June 2024 ### Features -* Added history callbacks API +* Added history callbacks API: `cligen_hist_fn_set` * Added history subsection in tutorial * Changed intermediate version numbers to be git-style, eg `7.0.0-39` instead of `7.1.0-PRE` diff --git a/cligen_getline.c b/cligen_getline.c index 56b0e75..5ffbf1c 100644 --- a/cligen_getline.c +++ b/cligen_getline.c @@ -55,7 +55,7 @@ static void gl_init1(void); /* prepare to edit a line */ static void gl_cleanup(void); /* to undo gl_init1 */ void gl_char_init(void); /* get ready for no echo input */ void gl_char_cleanup(void); /* undo gl_char_init */ -static size_t (*gl_strlen)() = (size_t(*)())strlen; +static size_t (*gl_strlen)(const char *) = (size_t(*)())strlen; /* returns printable prompt width */ static int gl_addchar(cligen_handle h, int c); /* install specified char */