diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-30 19:39:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-30 19:39:49 +0100 |
commit | 9b57814db13c29ecb08260b36923c0e1c8a373a9 (patch) | |
tree | 518df78530838cc70b222930955e2c0522ddd393 /src/netbeans.c | |
parent | 52ea13da0fe86df1abf34de52841e367035170c0 (diff) | |
download | vim-git-9b57814db13c29ecb08260b36923c0e1c8a373a9.tar.gz |
patch 7.4.1211v7.4.1211
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
Diffstat (limited to 'src/netbeans.c')
-rw-r--r-- | src/netbeans.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/netbeans.c b/src/netbeans.c index c935a61af..6f3c4e1a2 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -561,7 +561,7 @@ static int curPCtype = -1; * Free netbeans resources. */ static void -nb_free() +nb_free(void) { keyQ_T *key_node = keyHead.next; nbbuf_T buf; @@ -2355,22 +2355,20 @@ special_keys(char_u *args) } void -ex_nbclose(eap) - exarg_T *eap UNUSED; +ex_nbclose(exarg_T *eap UNUSED) { netbeans_close(); } void -ex_nbkey(eap) - exarg_T *eap; +ex_nbkey(exarg_T *eap) { (void)netbeans_keystring(eap->arg); } void -ex_nbstart(eap) - exarg_T *eap; +ex_nbstart( + exarg_T *eap) { #ifdef FEAT_GUI # if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) \ @@ -2572,7 +2570,7 @@ netbeans_open(char *params, int doabort) * before calling exit. */ void -netbeans_send_disconnect() +netbeans_send_disconnect(void) { char buf[128]; @@ -3400,8 +3398,7 @@ pos2off(buf_T *buf, pos_T *pos) * doesn't normally call readfile, we do our own. */ static void -print_read_msg(buf) - nbbuf_T *buf; +print_read_msg(nbbuf_T *buf) { int lnum = buf->bufp->b_ml.ml_line_count; off_t nchars = buf->bufp->b_orig_size; @@ -3438,9 +3435,7 @@ print_read_msg(buf) * writing a file. */ static void -print_save_msg(buf, nchars) - nbbuf_T *buf; - off_t nchars; +print_save_msg(nbbuf_T *buf, off_t nchars) { char_u c; char_u *p; |