summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2012-09-16 16:54:55 +0000
committerchl <chl@openbsd.org>2012-09-16 16:54:55 +0000
commitdca3baa039ce4782f4716866ff546c8a2d6046cc (patch)
tree489929b846678b4380ee17e8f2a153c15ba712f1
parentFactorize log_imsg() in imsg_dispatch() instead of in each imsg_callback()'s (diff)
downloadwireguard-openbsd-dca3baa039ce4782f4716866ff546c8a2d6046cc.tar.xz
wireguard-openbsd-dca3baa039ce4782f4716866ff546c8a2d6046cc.zip
now that log_imsg() is only used in smtpd.c, set it as static.
ok gilles@
-rw-r--r--usr.sbin/smtpd/smtpd.c5
-rw-r--r--usr.sbin/smtpd/smtpd.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 00b723ee159..4287267f42a 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.170 2012/09/16 16:43:29 chl Exp $ */
+/* $OpenBSD: smtpd.c,v 1.171 2012/09/16 16:54:55 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -67,6 +67,7 @@ static void offline_done(void);
static int offline_enqueue(char *);
static void purge_task(int, short, void *);
+static void log_imsg(int, int, struct imsg *);
struct offline {
@@ -1214,7 +1215,7 @@ imsg_dispatch(int fd, short event, void *p)
SPLAY_GENERATE(childtree, child, entry, child_cmp);
-void
+static void
log_imsg(int to, int from, struct imsg *imsg)
{
if (imsg->fd != -1)
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 4c911c8e536..a9122c3bf39 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.350 2012/09/16 15:55:55 chl Exp $ */
+/* $OpenBSD: smtpd.h,v 1.351 2012/09/16 16:54:55 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -1204,7 +1204,6 @@ void fdlimit(double);
int availdesc(void);
uint32_t evpid_to_msgid(uint64_t);
uint64_t msgid_to_evpid(uint32_t);
-void log_imsg(int, int, struct imsg*);
int ckdir(const char *, mode_t, uid_t, gid_t, int);
int rmtree(char *, int);
int mvpurge(char *, char *);