summaryrefslogtreecommitdiff
path: root/src/qmail-qread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-qread.c')
-rw-r--r--src/qmail-qread.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/qmail-qread.c b/src/qmail-qread.c
index a0925ad..5b2b6e7 100644
--- a/src/qmail-qread.c
+++ b/src/qmail-qread.c
@@ -23,13 +23,13 @@
readsubdir rs;
-void die(int n)
+static void die(int n)
{
buffer_flush(buffer_1);
_exit(n);
}
-void warn(char *s1, char *s2)
+static void warn(char *s1, char *s2)
{
char *x;
x = error_str(errno);
@@ -40,25 +40,25 @@ void warn(char *s1, char *s2)
buffer_puts(buffer_1, "\n");
}
-void die_nomem()
+static void die_nomem()
{
buffer_puts(buffer_1, "fatal: out of memory\n");
die(111);
}
-void die_chdir()
+static void die_chdir()
{
warn("fatal: unable to chdir", "");
die(110);
}
-void die_opendir(fn) char *fn;
+static void die_opendir(char *fn)
{
warn("fatal: unable to opendir ", fn);
die(110);
}
-void err(unsigned long id)
+static void err(unsigned long id)
{
char foo[FMT_ULONG];
foo[fmt_ulong(foo, id)] = 0;
@@ -79,7 +79,7 @@ datetime_sec qtime;
int flagbounce;
unsigned long size;
-unsigned int fmtstats(char *s)
+static unsigned int fmtstats(char *s)
{
struct datetime dt;
unsigned int len;
@@ -122,7 +122,7 @@ unsigned int fmtstats(char *s)
stralloc stats = {0};
-void out(char *s, unsigned int n)
+static void out(char *s, unsigned int n)
{
while (n > 0) {
buffer_put(buffer_1, ((*s >= 32) && (*s <= 126)) ? s : "_", 1);
@@ -131,17 +131,17 @@ void out(char *s, unsigned int n)
}
}
-void outs(char *s)
+static void outs(char *s)
{
out(s, str_len(s));
}
-void outok(char *s)
+static void outok(char *s)
{
buffer_puts(buffer_1, s);
}
-void putstats()
+static void putstats()
{
if (!stralloc_ready(&stats, fmtstats(FMT_LEN))) die_nomem();
stats.len = fmtstats(stats.s);