diff options
Diffstat (limited to 'lesskey.c')
| -rw-r--r-- | lesskey.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lesskey.c b/lesskey.c index b5130cccb8f7..39ebe8b980a9 100644 --- a/lesskey.c +++ b/lesskey.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2021 Mark Nudelman + * Copyright (C) 1984-2022 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. @@ -122,6 +122,14 @@ lesskey_parse_error(s) fprintf(stderr, "%s\n", s); } + int +lstrtoi(buf, ebuf) + char *buf; + char **ebuf; +{ + return (int) strtol(buf, ebuf, 10); +} + void * ecalloc(count, size) int count; @@ -366,5 +374,6 @@ main(argc, argv) /* File trailer */ fputbytes(out, endsection, sizeof(endsection)); fputbytes(out, filetrailer, sizeof(filetrailer)); + fclose(out); return (0); } |
