summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-11-28 20:29:07 +0000
committerBram Moolenaar <Bram@vim.org>2008-11-28 20:29:07 +0000
commitfe86f2d7cdb284f18543cac2e6cbbe11352c7f48 (patch)
tree9b8155ee2c3fe3142e4258590d210451db55db1f /src/netbeans.c
parenta40b46614a54de01a74d37a771db4dbfa44afee9 (diff)
downloadvim-git-fe86f2d7cdb284f18543cac2e6cbbe11352c7f48.tar.gz
updated for version 7.2-055v7.2.055
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index 19c365054..92ca89f21 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -1043,7 +1043,7 @@ netbeans_end(void)
nbdebug(("EVT: %s", buf));
/* nb_send(buf, "netbeans_end"); avoid "write failed" messages */
if (sd >= 0)
- sock_write(sd, buf, (int)STRLEN(buf)); /* ignore errors */
+ ignored = sock_write(sd, buf, (int)STRLEN(buf));
}
}
@@ -2277,9 +2277,6 @@ nb_do_cmd(
int serNum;
int localTypeNum;
int typeNum;
-# ifdef NBDEBUG
- int len;
-# endif
pos_T *pos;
if (buf == NULL || buf->bufp == NULL)
@@ -2303,13 +2300,10 @@ nb_do_cmd(
pos = get_off_or_lnum(buf->bufp, &args);
cp = (char *)args;
-# ifdef NBDEBUG
- len =
-# endif
- strtol(cp, &cp, 10);
+ ignored = (int)strtol(cp, &cp, 10);
args = (char_u *)cp;
# ifdef NBDEBUG
- if (len != -1)
+ if (ignored != -1)
{
nbdebug((" partial line annotation -- Not Yet Implemented!\n"));
}