Skip to content

Commit

Permalink
Fix some instances of non-K&R function definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Dec 25, 2021
1 parent 6830b87 commit 3102e64
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
10 changes: 8 additions & 2 deletions cmdbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,10 @@ read_cmdhist(action, uparam, skip_search, skip_shell)
}

static void
addhist_init(void *uparam, struct mlist *ml, char *string)
addhist_init(uparam, ml, string)
void *uparam;
struct mlist *ml;
char constant *string;
{
if (ml != NULL)
cmd_addhist(ml, string, 0);
Expand Down Expand Up @@ -1630,7 +1633,10 @@ struct save_ctx
* created during this session.
*/
static void
copy_hist(void *uparam, struct mlist *ml, char *string)
copy_hist(uparam, ml, string)
void *uparam;
struct mlist *ml;
char constant *string;
{
struct save_ctx *ctx = (struct save_ctx *) uparam;

Expand Down
4 changes: 2 additions & 2 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,8 +950,8 @@ getccu(VOID_PARAM)
*/
static LWCHAR
getcc_repl(orig, repl, gr_getc, gr_ungetc)
char const* orig;
char const* repl;
char constant* orig;
char constant* repl;
LWCHAR (*gr_getc)(VOID_PARAM);
void (*gr_ungetc)(LWCHAR);
{
Expand Down
2 changes: 1 addition & 1 deletion line.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ back_raw_line(curr_pos, linep, line_lenp)
*/
static int
pappstr(str)
char *str;
constant char *str;
{
while (*str != '\0')
{
Expand Down
4 changes: 3 additions & 1 deletion tags.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ edit_tagfile(VOID_PARAM)
}

static int
curtag_match(char const *line, POSITION linepos)
curtag_match(line, linepos)
char constant *line;
POSITION linepos;
{
/*
* Test the line to see if we have a match.
Expand Down

0 comments on commit 3102e64

Please sign in to comment.