if_state_name() and proposal_state_name() are only uesd in log_debug()
calls which are NOOPs in SMALL builds.
Seen with -Wunused-function warnings in distrib/special/slaacd.
OK deraadt
-/* $OpenBSD: engine.c,v 1.83 2022/07/23 16:16:25 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.84 2022/08/26 00:02:08 kn Exp $ */
/*
* Copyright (c) 2017 Florian Obser <florian@openbsd.org>
#define CASE(x) case x : return #x
+#ifndef SMALL
static const char*
if_state_name(enum if_state ifs)
{
CASE(PROPOSAL_STALE);
}
}
+#endif
void
engine_sig_handler(int sig, short event, void *arg)