summaryrefslogtreecommitdiff
path: root/usr.bin/less/jump.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-09 16:39:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-09 16:39:14 +0000
commit09e0a564ee0d7993ffe3cd115be1e567dfcb464d (patch)
treee18b1cb036f3edecbafc6bfba7a134c1475a55e6 /usr.bin/less/jump.c
parent449a8b6a5cad2487bd8f8e2beb10fc2356f91538 (diff)
error() is not a stdarg function, so there is no reason for NULL_PARG
to be special. Simply use NULL.
Diffstat (limited to 'usr.bin/less/jump.c')
-rw-r--r--usr.bin/less/jump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/less/jump.c b/usr.bin/less/jump.c
index f0dd5d273d9..c6873c8ecbf 100644
--- a/usr.bin/less/jump.c
+++ b/usr.bin/less/jump.c
@@ -33,7 +33,7 @@ jump_forw(void)
off_t end_pos;
if (ch_end_seek()) {
- error("Cannot seek to end of file", NULL_PARG);
+ error("Cannot seek to end of file", NULL);
return;
}
/*
@@ -81,7 +81,7 @@ jump_back(LINENUM linenum)
jump_loc(pos, jump_sline);
} else if (linenum <= 1 && ch_beg_seek() == 0) {
jump_loc(ch_tell(), jump_sline);
- error("Cannot seek to beginning of file", NULL_PARG);
+ error("Cannot seek to beginning of file", NULL);
} else {
parg.p_linenum = linenum;
error("Cannot seek to line number %n", &parg);
@@ -117,11 +117,11 @@ jump_percent(int percent, long fraction)
* (the specified percentage of the file's length).
*/
if ((len = ch_length()) == -1) {
- ierror("Determining length of file", NULL_PARG);
+ ierror("Determining length of file", NULL);
ch_end_seek();
}
if ((len = ch_length()) == -1) {
- error("Don't know length of file", NULL_PARG);
+ error("Don't know length of file", NULL);
return;
}
pos = percent_pos(len, percent, fraction);
@@ -193,7 +193,7 @@ jump_loc(off_t pos, int sline)
* Seek to the desired location.
*/
if (ch_seek(pos)) {
- error("Cannot seek to that file position", NULL_PARG);
+ error("Cannot seek to that file position", NULL);
return;
}