]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix sha2 MAKE_CLONE no-op definition
authorMichael Forney <mforney@mforney.org>
Thu, 28 Nov 2019 03:17:26 +0000 (19:17 -0800)
committerDamien Miller <djm@mindrot.org>
Thu, 6 Feb 2020 00:53:38 +0000 (11:53 +1100)
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.

openbsd-compat/sha2.c

index e63324c99826c9551b884ed03782249de4c644ac..e36cc24ef6171e88e0fe82fc28d29178b490bbc5 100644 (file)
@@ -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>