aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-08-26 13:27:05 -0400
committerMichael Reed <m.reed@mykolab.com>2015-08-27 16:56:05 -0400
commit2d50a956011cfdd70efc3ebb60e9d27bd97ffdb6 (patch)
tree7a1f9f341c030b1e3489ea85115339126382322a /src/nvim/if_cscope.c
parent3b99d8d0dd82f866b80822af2220a005fdd83db2 (diff)
downloadrneovim-2d50a956011cfdd70efc3ebb60e9d27bd97ffdb6.tar.gz
rneovim-2d50a956011cfdd70efc3ebb60e9d27bd97ffdb6.tar.bz2
rneovim-2d50a956011cfdd70efc3ebb60e9d27bd97ffdb6.zip
os/os_defs.h cleanup: Remaining signal stuff
RETSIGTYPE, SIGRETURN, and SIGDEFARG are always defined the same, so inline them for simplicity; SIGDUMMYARG, however, is unused, so remove it. Even if these things don't work on windows, the signal handler in if_cscope.c is already wrapped with '#idef UNIX', as is its only call site. Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r--src/nvim/if_cscope.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c
index d6c5cf4fd5..5e1c5e9171 100644
--- a/src/nvim/if_cscope.c
+++ b/src/nvim/if_cscope.c
@@ -1829,10 +1829,9 @@ static int cs_read_prompt(int i)
/*
* Used to catch and ignore SIGALRM below.
*/
-static RETSIGTYPE
-sig_handler SIGDEFARG(sigarg) {
+static void sig_handler(int s) {
/* do nothing */
- SIGRETURN;
+ return;
}
#endif