aboutsummaryrefslogtreecommitdiff
path: root/lessecho.c
diff options
context:
space:
mode:
Diffstat (limited to 'lessecho.c')
-rw-r--r--lessecho.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lessecho.c b/lessecho.c
index fb0b22ddc000..e4a23f5f39c5 100644
--- a/lessecho.c
+++ b/lessecho.c
@@ -38,14 +38,14 @@ static char metachars[64] = "";
static int num_metachars = 0;
static void
-pr_usage()
+pr_usage(void)
{
fprintf(stderr,
"usage: lessecho [-ox] [-cx] [-pn] [-dn] [-mx] [-nn] [-ex] [-fn] [-a] file ...\n");
}
static void
-pr_version()
+pr_version(void)
{
char *p;
char buf[10];
@@ -61,18 +61,14 @@ pr_version()
}
static void
-pr_error(s)
- char *s;
+pr_error(char *s)
{
fprintf(stderr, "%s\n", s);
exit(1);
}
static long
-lstrtol(s, radix, pend)
- char *s;
- int radix;
- char **pend;
+lstrtol(char *s, int radix, char **pend)
{
int v;
int neg = 0;