summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
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"));
}