diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
commit | 973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch) | |
tree | 1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/qmail-qmtpd.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/qmail-qmtpd.c')
-rw-r--r-- | src/qmail-qmtpd.c | 14 |
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; |