summaryrefslogtreecommitdiffstats
path: root/src/if_cscope.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-24 21:56:24 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-24 21:56:24 +0000
commit446cb837a017fc1c1b144cb5c2a35cb90abfbbcf (patch)
tree6c1fe56f2db8d4adbeee792b181b0659c4d1f216 /src/if_cscope.c
parent3577c6fafb77da5419cd1001dac56f204d480bdc (diff)
updated for version 7.2a
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index 0019559512..600fcb0a37 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -23,7 +23,6 @@
#else
/* not UNIX, must be WIN32 */
# include "vimio.h"
-# include <fcntl.h>
#endif
#include "if_cscope.h"
@@ -171,7 +170,7 @@ do_cstag(eap)
cs_init();
- if (eap->arg == NULL || strlen((const char *)(eap->arg)) == 0)
+ if (*eap->arg == NUL)
{
(void)EMSG(_("E562: Usage: cstag <ident>"));
return;
@@ -1225,7 +1224,7 @@ clear_csinfo(i)
csinfo[i].nIndexHigh = 0;
csinfo[i].nIndexLow = 0;
#endif
- csinfo[i].pid = -1;
+ csinfo[i].pid = 0;
csinfo[i].fr_fp = NULL;
csinfo[i].to_fp = NULL;
#if defined(WIN32)