summaryrefslogtreecommitdiff
path: root/usr.bin/less/brac.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/brac.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/brac.c')
-rw-r--r--usr.bin/less/brac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/less/brac.c b/usr.bin/less/brac.c
index 1a8ce4691ef..b27ea6162f5 100644
--- a/usr.bin/less/brac.c
+++ b/usr.bin/less/brac.c
@@ -40,9 +40,9 @@ match_brac(int obrac, int cbrac, int forwdir, int n)
pos = position((forwdir) ? TOP : BOTTOM);
if (pos == -1 || ch_seek(pos)) {
if (forwdir)
- error("Nothing in top line", NULL_PARG);
+ error("Nothing in top line", NULL);
else
- error("Nothing in bottom line", NULL_PARG);
+ error("Nothing in bottom line", NULL);
return;
}
@@ -52,9 +52,9 @@ match_brac(int obrac, int cbrac, int forwdir, int n)
do {
if ((c = ch_forw_get()) == '\n' || c == EOI) {
if (forwdir)
- error("No bracket in top line", NULL_PARG);
+ error("No bracket in top line", NULL);
else
- error("No bracket in bottom line", NULL_PARG);
+ error("No bracket in bottom line", NULL);
return;
}
} while (c != obrac || --n > 0);
@@ -86,5 +86,5 @@ match_brac(int obrac, int cbrac, int forwdir, int n)
return;
}
}
- error("No matching bracket", NULL_PARG);
+ error("No matching bracket", NULL);
}