| Date: Mon, 8 Nov 2021 23:53:41 +0100
Make some internal symbols static
Diffstat:
M sacc.c | 6 +++---
M ui_ti.c | 2 +-
M ui_txt.c | 8 ++++----
3 files changed, 8 insertions(+), 8 deletions(-)
--- |
| t@@ -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;
t@@ -30,8 +32,6 @@ static int devnullfd;
static int parent = 1;
static int interactive;
-void (*diag)(char *fmt, ...);
-
static void
stddiag(char *fmt, ...)
{ |
| t@@ -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; |
| t@@ -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)
t@@ -43,7 +43,7 @@ uicleanup(void)
return;
}
-void
+static void
help(void)
{
puts("Commands:\n"
t@@ -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')
t@@ -177,7 +177,7 @@ printuri(Item *item, size_t i)
putchar('\n');
}
-void
+static void
searchinline(const char *searchstr, Item *entry)
{
Dir *dir; |