File: patch-use-extern-inline-for-__write2.patch

package info (click to toggle)
fgetty 0.7-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: ansic: 2,170; makefile: 226
file content (23 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Adrian Bunk <bunk@debian.org>
Date: Tue, 13 Feb 2018 06:22:21 +0300
Subject: [PATCH] Use "extern inline" for __write2

This is required to ensure that an out-of-line
version of the function will be generated.
---
 checkpassword.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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