summaryrefslogtreecommitdiff
path: root/src/newaliases.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/newaliases.c')
-rw-r--r--src/newaliases.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/newaliases.c b/src/newaliases.c
index 2275f63..9248636 100644
--- a/src/newaliases.c
+++ b/src/newaliases.c
@@ -5,7 +5,6 @@
#include "byte.h"
#include "case.h"
#include "cdbmake.h"
-#include "genalloc.h"
#include "getln.h"
#include "logmsg.h"
#include "open.h"
@@ -24,32 +23,32 @@
int rename(const char *, const char *); // stdio.h
-void nomem()
+static void nomem()
{
logmsg(WHO, 111, FATAL, "out of memory");
}
-void nulbyte()
+static void nulbyte()
{
logmsg(WHO, 100, FATAL, "NUL bytes are not permitted");
}
-void longaddress()
+static void longaddress()
{
logmsg(WHO, 100, FATAL, "addresses over 800 bytes are not permitted");
}
-void writeerr()
+static void writeerr()
{
logmsg(WHO, 111, FATAL, "unable to write to /etc/aliases.tmp");
}
-void readerr()
+static void readerr()
{
logmsg(WHO, 111, FATAL, "unable to read /etc/aliases");
}
-void die_control()
+static void die_control()
{
logmsg(WHO, 111, FATAL, "unable to read controls");
}
@@ -59,7 +58,7 @@ stralloc defaulthost = {0};
stralloc defaultdomain = {0};
stralloc plusdomain = {0};
-void readcontrols()
+static void readcontrols()
{
int r;
int fddir;
@@ -97,7 +96,7 @@ token822_alloc toks = {0};
token822_alloc tokaddr = {0};
stralloc address = {0};
-void gotincl()
+static void gotincl()
{
token822_reverse(&tokaddr);
if (token822_unquote(&address, &tokaddr) != 1) nomem();
@@ -114,7 +113,7 @@ void gotincl()
if (!stralloc_0(&instr)) nomem();
}
-void gotaddr()
+static void gotaddr()
{
int i;
int j;
@@ -186,13 +185,13 @@ stralloc line = {0};
stralloc newline = {0};
int match;
-void parseerr()
+static void parseerr()
{
if (!stralloc_0(&line)) nomem();
logmsg(WHO, 111, FATAL, B("unable to parse this line: ", line.s));
}
-void parseline()
+static void parseline()
{
int wordok;
struct token822 *t;
@@ -265,7 +264,7 @@ buffer bi;
struct cdb_make cdb;
stralloc key = {0};
-void doit()
+static void doit()
{
if (!instr.len) {
if (target.len) parseerr();