[hackers] [sbase] Staticise functions in tr(1) || sin
commit e9a4af87bd6e65e76b12d8e7e180d44d5f385628
Author: sin <sin_AT_2f30.org>
Date: Sat Jan 25 22:07:13 2014 +0000
Staticise functions in tr(1)
diff --git a/tr.c b/tr.c
index a4ddef9..b336f57 100644
--- a/tr.c
+++ b/tr.c
_AT_@ -15,7 +15,7 @@ usage(void)
eprintf("usage: %s set1 [set2]
", argv0);
}
-void
+static void
handleescapes(char *s)
{
switch(*s) {
_AT_@ -46,7 +46,7 @@ handleescapes(char *s)
}
}
-void
+static void
parsemapping(const char *set1, const char *set2, wchar_t *mappings)
{
char *s;
_AT_@ -78,7 +78,7 @@ parsemapping(const char *set1, const char *set2, wchar_t *mappings)
}
}
-void
+static void
maptonull(const wchar_t *mappings, char *in)
{
const char *s;
_AT_@ -94,7 +94,7 @@ maptonull(const wchar_t *mappings, char *in)
}
}
-void
+static void
maptoset(const wchar_t *mappings, char *in)
{
const char *s;
Received on Sat Jan 25 2014 - 23:07:45 CET
This archive was generated by hypermail 2.3.0
: Sat Jan 25 2014 - 23:12:09 CET