diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-09 16:46:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-09 16:46:44 +0000 |
commit | 39bf022396745c82ae60c9ade8625e070bad1a0c (patch) | |
tree | 7f2c0f35e328f16d0ed1141c6688871f1bf2731d /usr.bin/less/prompt.c | |
parent | b182ffb903242f1d2c9d8ff87b60608d7f8257ab (diff) |
NULL_IFILE has no weird use patterns. NULL is sufficient.
Diffstat (limited to 'usr.bin/less/prompt.c')
-rw-r--r-- | usr.bin/less/prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/less/prompt.c b/usr.bin/less/prompt.c index 58c29f57edc..b7b1ffc4288 100644 --- a/usr.bin/less/prompt.c +++ b/usr.bin/less/prompt.c @@ -216,7 +216,7 @@ cond(char c, int where) case 'x': /* Is there a "next" file? */ if (ntags()) return (0); - return (next_ifile(curr_ifile) != NULL_IFILE); + return (next_ifile(curr_ifile) != NULL); } return (0); } @@ -350,7 +350,7 @@ protochar(int c, int where) break; case 'x': /* Name of next file */ h = next_ifile(curr_ifile); - if (h != NULL_IFILE) + if (h != NULL) ap_str(get_filename(h)); else ap_quest(); |