sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit 575c12bd0606717a2e7312669decc9a8197e41bd
parent 6272b9a65812c9f653d693941b3317fe2f98a028
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon,  8 Nov 2021 23:53:41 +0100

Make some internal symbols static

Diffstat:
Msacc.c | 6+++---
Mui_ti.c | 2+-
Mui_txt.c | 8++++----
3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/sacc.c b/sacc.c @@ -22,7 +22,9 @@ #include "io.h" #include "config.h" -const char ident[] = "@(#) sacc(omys): " VERSION; +void (*diag)(char *, ...); + +static const char *ident = "@(#) sacc(omys): " VERSION; static char *mainurl; static Item *mainentry; @@ -30,8 +32,6 @@ static int devnullfd; static int parent = 1; static int interactive; -void (*diag)(char *fmt, ...); - static void stddiag(char *fmt, ...) { diff --git a/ui_ti.c b/ui_ti.c @@ -372,7 +372,7 @@ jumptoline(Item *entry, ssize_t line, int absolute) return; } -void +static void searchinline(const char *searchstr, Item *entry, int pos) { Dir *dir; diff --git a/ui_txt.c b/ui_txt.c @@ -12,8 +12,8 @@ static char bufout[256]; static Item *curentry; +static int lines, columns; static char cmd; -int lines, columns; static void viewsize(int *ln, int *col) @@ -43,7 +43,7 @@ uicleanup(void) return; } -void +static void help(void) { puts("Commands:\n" @@ -165,7 +165,7 @@ uidisplay(Item *entry) fflush(stdout); } -void +static void printuri(Item *item, size_t i) { if (!item || item->type == 0 || item->type == 'i') @@ -177,7 +177,7 @@ printuri(Item *item, size_t i) putchar('\n'); } -void +static void searchinline(const char *searchstr, Item *entry) { Dir *dir;