summaryrefslogtreecommitdiff
path: root/src/qmail-qmtpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-qmtpd.c')
-rw-r--r--src/qmail-qmtpd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qmail-qmtpd.c b/src/qmail-qmtpd.c
index bb08fcc..4d93f1a 100644
--- a/src/qmail-qmtpd.c
+++ b/src/qmail-qmtpd.c
@@ -30,17 +30,17 @@
/** @file qmail-qmtpd.c -- QMTP/QMTPS server
@brief requires sslserver */
-void badproto()
+static void badproto()
{
_exit(100);
}
-void resources()
+static void resources()
{
_exit(111);
}
-ssize_t safewrite(int fd, char *buf, int len)
+static ssize_t safewrite(int fd, char *buf, int len)
{
int r;
r = write(fd, buf, len);
@@ -51,7 +51,7 @@ ssize_t safewrite(int fd, char *buf, int len)
char outbuf[256];
buffer bo = BUFFER_INIT(safewrite, 1, outbuf, sizeof(outbuf));
-ssize_t saferead(int fd, char *buf, int len)
+static ssize_t saferead(int fd, char *buf, int len)
{
int r;
buffer_flush(&bo);
@@ -63,7 +63,7 @@ ssize_t saferead(int fd, char *buf, int len)
char inbuf[512];
buffer bi = BUFFER_INIT(saferead, 0, inbuf, sizeof(inbuf));
-unsigned long getlen()
+static unsigned long getlen()
{
unsigned long len = 0;
char ch;
@@ -76,7 +76,7 @@ unsigned long getlen()
}
}
-void getcomma()
+static void getcomma()
{
char ch;
buffer_get(&bi, &ch, 1);
@@ -114,7 +114,7 @@ char *dnemail;
int seentls = 0;
-int modssl_info()
+static int modssl_info()
{
tlsversion = env_get("SSL_PROTOCOL");
if (!tlsversion) return 0;