diff options
Diffstat (limited to 'page.c')
| -rw-r--r-- | page.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,7 +4,8 @@ #include <string.h> #include <curses.h> -void freefilebuf(char **buffer, ssize_t cnt) +static void +freefilebuf(char **buffer, ssize_t cnt) { if (!buffer || !cnt) return; @@ -15,7 +16,8 @@ void freefilebuf(char **buffer, ssize_t cnt) free(buffer); } -int readfile(FILE *fp, char ***buffer, ssize_t *count, int ncols) +static int +readfile(FILE *fp, char ***buffer, ssize_t *count, int ncols) { char **buf, **tmp; char *line; @@ -99,7 +101,8 @@ int readfile(FILE *fp, char ***buffer, ssize_t *count, int ncols) return ret; } -void displayfile(FILE *fp, long fpos, int r, int c, int y, int x) +static void +displayfile(FILE *fp, long fpos, int r, int c, int y, int x) { WINDOW *win; char **lbuf; |
