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/sendmail.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sendmail.c') diff --git a/src/sendmail.c b/src/sendmail.c index 84385d9..1a9e858 100644 --- a/src/sendmail.c +++ b/src/sendmail.c @@ -16,19 +16,19 @@ #define WHO "sendmail" -void nomem() +static void nomem() { logmsg(WHO, 111, FATAL, "out of memory\n"); } -void die_usage() +static void die_usage() { logmsg(WHO, 100, USAGE, "sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]\n"); } char *smtpdarg[] = {"bin/qmail-smtpd", 0}; -void smtpd() +static void smtpd() { if (!env_get("PROTO")) { if (!env_puts("RELAYCLIENT=")) nomem(); @@ -48,13 +48,13 @@ void smtpd() char *qreadarg[] = {"bin/qmail-qread", 0}; -void mailq() +static void mailq() { execv(*qreadarg, qreadarg); logmsg(WHO, 111, FATAL, "unable to run qmail-qread\n"); } -void do_sender(const char *s) +static void do_sender(const char *s) { char *x; int n; -- cgit v1.2.3