summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@debian.org>2018-02-13 06:22:21 +0300
committerDmitry Bogatov <KAction@debian.org>2019-01-07 20:35:25 +0000
commit9e198969172bd1d08a79cd5a7a7fab296c12e469 (patch)
tree7e83688ec3432bfdcf5f074e382880f0df89d57c
parent75104527c6dfdffb893c77a280c70f6c59b7172e (diff)
[PATCH] Use "extern inline" for __write2
This is required to ensure that an out-of-line version of the function will be generated. Gbp-Pq: Name patch-use-extern-inline-for-__write2.patch
-rw-r--r--checkpassword.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkpassword.c b/checkpassword.c
index 655668a..edb7ce0 100644
--- a/checkpassword.c
+++ b/checkpassword.c
@@ -8,7 +8,7 @@
#ifdef __dietlibc__
#include <write12.h>
#else
-inline void __write2(const char* message) {
+extern inline void __write2(const char* message) {
write(2,message,strlen(message));
}
#endif