diff options
Diffstat (limited to 'optfunc.c')
-rw-r--r-- | optfunc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/optfunc.c b/optfunc.c index 44f8e5fa70380..4c79fe3f16b95 100644 --- a/optfunc.c +++ b/optfunc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2016 Mark Nudelman + * Copyright (C) 1984-2017 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -47,9 +47,9 @@ extern char *every_first_cmd; extern IFILE curr_ifile; extern char version[]; extern int jump_sline; -extern int jump_sline_fraction; +extern long jump_sline_fraction; extern int shift_count; -extern int shift_count_fraction; +extern long shift_count_fraction; extern int less_is_more; #if LOGFILE extern char *namelogfile; @@ -180,7 +180,7 @@ opt_j(type, s) } else { - sprintf(buf, ".%06d", jump_sline_fraction); + sprintf(buf, ".%06ld", jump_sline_fraction); len = (int) strlen(buf); while (len > 2 && buf[len-1] == '0') len--; @@ -245,7 +245,7 @@ opt_shift(type, s) } else { - sprintf(buf, ".%06d", shift_count_fraction); + sprintf(buf, ".%06ld", shift_count_fraction); len = (int) strlen(buf); while (len > 2 && buf[len-1] == '0') len--; @@ -362,7 +362,7 @@ opt__T(type, s) public void opt_p(type, s) int type; - register char *s; + char *s; { switch (type) { @@ -398,9 +398,9 @@ opt_p(type, s) public void opt__P(type, s) int type; - register char *s; + char *s; { - register char **proto; + char **proto; PARG parg; switch (type) @@ -518,7 +518,7 @@ opt__V(type, s) putstr("no "); #endif putstr("regular expressions)\n"); - putstr("Copyright (C) 1984-2016 Mark Nudelman\n\n"); + putstr("Copyright (C) 1984-2017 Mark Nudelman\n\n"); putstr("less comes with NO WARRANTY, to the extent permitted by law.\n"); putstr("For information about the terms of redistribution,\n"); putstr("see the file named README in the less distribution.\n"); @@ -624,7 +624,7 @@ opt_D(type, s) public void opt_x(type, s) int type; - register char *s; + char *s; { extern int tabstops[]; extern int ntabstops; @@ -682,7 +682,7 @@ opt_x(type, s) public void opt_quote(type, s) int type; - register char *s; + char *s; { char buf[3]; PARG parg; |