From 58ad7fc578125aed6187944eb44c574041479fbf Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 16 Aug 2018 22:32:06 -0400 Subject: ops: refactor get_spec_reg() Return value is bool. errmsg (param) is bool in here and in getaltfname(). allocated (param) is bool. --- src/nvim/buffer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 00d472b4c8..64569c294b 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -2659,9 +2659,8 @@ buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum) * Get alternate file name for current window. * Return NULL if there isn't any, and give error message if requested. */ -char_u * -getaltfname ( - int errmsg /* give error message */ +char_u * getaltfname( + bool errmsg // give error message ) { char_u *fname; -- cgit