From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/qmail-qmtpd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/qmail-qmtpd.c') 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; -- cgit v1.2.3