aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-04-11 15:24:59 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-04-11 15:24:59 +0000
commit876d357fa7bc8aeb8d050dd8fe227dd4fd8ed4df (patch)
treef5194d1ce3fa45b67cf63080fc519fec83abc57a /lib/libedit
parent7a888f325e494860d6158821dfbcef85a3310783 (diff)
parentb2d7040c1cc76c5bbbf54cd2351b4d137b8c22b6 (diff)
downloadsrc-876d357fa7bc8aeb8d050dd8fe227dd4fd8ed4df.tar.gz
src-876d357fa7bc8aeb8d050dd8fe227dd4fd8ed4df.zip
MFH
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-pkg/; revision=297824
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/filecomplete.c4
-rw-r--r--lib/libedit/vi.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libedit/filecomplete.c b/lib/libedit/filecomplete.c
index 10d44e44ebd1..452730233a28 100644
--- a/lib/libedit/filecomplete.c
+++ b/lib/libedit/filecomplete.c
@@ -471,7 +471,7 @@ fn_complete(EditLine *el,
/* these can be used by function called in completion_matches() */
/* or (*attempted_completion_function)() */
- if (point != 0)
+ if (point != NULL)
*point = (int)(li->cursor - li->buffer);
if (end != NULL)
*end = (int)(li->lastchar - li->buffer);
@@ -483,7 +483,7 @@ fn_complete(EditLine *el,
&el->el_scratch),
cur_off - (int)len, cur_off);
} else
- matches = 0;
+ matches = NULL;
if (!attempted_completion_function ||
(over != NULL && !*over && !matches))
matches = completion_matches(
diff --git a/lib/libedit/vi.c b/lib/libedit/vi.c
index 0a426fd999d6..6b0a775c6529 100644
--- a/lib/libedit/vi.c
+++ b/lib/libedit/vi.c
@@ -1088,7 +1088,7 @@ vi_history_word(EditLine *el, Int c __attribute__((__unused__)))
if (wp == NULL)
return CC_ERROR;
- wep = wsp = 0;
+ wep = wsp = NULL;
do {
while (Isspace(*wp))
wp++;
@@ -1101,7 +1101,7 @@ vi_history_word(EditLine *el, Int c __attribute__((__unused__)))
} while ((!el->el_state.doingarg || --el->el_state.argument > 0)
&& *wp != 0);
- if (wsp == 0 || (el->el_state.doingarg && el->el_state.argument != 0))
+ if (wsp == NULL || (el->el_state.doingarg && el->el_state.argument != 0))
return CC_ERROR;
cv_undo(el);