summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-11-27 19:17:26 -0800
committerDamien Miller <djm@mindrot.org>2020-02-06 11:53:38 +1100
commit9716e8c4956acdd7b223d1642bfa376e07e7503d (patch)
tree2cc85c6eef801b42b91b683114806ddf026d05f8
parentd596b1d30dc158915a3979fa409d21ff2465b6ee (diff)
Fix sha2 MAKE_CLONE no-op definition
The point of the dummy declaration is so that MAKE_CLONE(...) can have a trailing semicolon without introducing an empty declaration. So, the macro replacement text should *not* have a trailing semicolon, just like DEF_WEAK.
-rw-r--r--openbsd-compat/sha2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index e63324c9..e36cc24e 100644
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
@@ -42,7 +42,7 @@
!defined(HAVE_SHA512UPDATE)
/* no-op out, similar to DEF_WEAK but only needed here */
-#define MAKE_CLONE(x, y) void __ssh_compat_make_clone_##x_##y(void);
+#define MAKE_CLONE(x, y) void __ssh_compat_make_clone_##x_##y(void)
#include <string.h>
#include <sha2.h>