Blame SOURCES/0173-tests-secontext-eliminate-separate-secontext_format-.patch

e5c382
From 6e8aa3749cb7e11e9a59db996f79f036bf7ef263 Mon Sep 17 00:00:00 2001
e5c382
From: Eugene Syromyatnikov <evgsyr@gmail.com>
e5c382
Date: Tue, 18 Jan 2022 18:05:19 +0100
e5c382
Subject: [PATCH 173/174] tests/secontext: eliminate separate secontext_format
e5c382
 declaration
e5c382
e5c382
* tests/secontext.c (secontext_format): Remove declaration, supply
e5c382
the attributes to the definition.
e5c382
---
e5c382
 tests/secontext.c | 5 +----
e5c382
 1 file changed, 1 insertion(+), 4 deletions(-)
e5c382
e5c382
diff --git a/tests/secontext.c b/tests/secontext.c
e5c382
index 52211ed..ba271c8 100644
e5c382
--- a/tests/secontext.c
e5c382
+++ b/tests/secontext.c
e5c382
@@ -23,10 +23,7 @@
e5c382
 # define TEST_SECONTEXT
e5c382
 # include "secontext.h"
e5c382
 
e5c382
-static char *
e5c382
-secontext_format(char *context, const char *fmt)
e5c382
-	ATTRIBUTE_FORMAT((printf, 2, 0)) ATTRIBUTE_MALLOC;
e5c382
-
e5c382
+ATTRIBUTE_FORMAT((printf, 2, 0)) ATTRIBUTE_MALLOC
e5c382
 static char *
e5c382
 secontext_format(char *context, const char *fmt)
e5c382
 {
e5c382
diff --git a/tests-m32/secontext.c b/tests-m32/secontext.c
e5c382
index 52211ed..ba271c8 100644
e5c382
--- a/tests-m32/secontext.c
e5c382
+++ b/tests-m32/secontext.c
e5c382
@@ -23,10 +23,7 @@
e5c382
 # define TEST_SECONTEXT
e5c382
 # include "secontext.h"
e5c382
 
e5c382
-static char *
e5c382
-secontext_format(char *context, const char *fmt)
e5c382
-	ATTRIBUTE_FORMAT((printf, 2, 0)) ATTRIBUTE_MALLOC;
e5c382
-
e5c382
+ATTRIBUTE_FORMAT((printf, 2, 0)) ATTRIBUTE_MALLOC
e5c382
 static char *
e5c382
 secontext_format(char *context, const char *fmt)
e5c382
 {
e5c382
diff --git a/tests-mx32/secontext.c b/tests-mx32/secontext.c
e5c382
index 52211ed..ba271c8 100644
e5c382
--- a/tests-mx32/secontext.c
e5c382
+++ b/tests-mx32/secontext.c
e5c382
@@ -23,10 +23,7 @@
e5c382
 # define TEST_SECONTEXT
e5c382
 # include "secontext.h"
e5c382
 
e5c382
-static char *
e5c382
-secontext_format(char *context, const char *fmt)
e5c382
-	ATTRIBUTE_FORMAT((printf, 2, 0)) ATTRIBUTE_MALLOC;
e5c382
-
e5c382
+ATTRIBUTE_FORMAT((printf, 2, 0)) ATTRIBUTE_MALLOC
e5c382
 static char *
e5c382
 secontext_format(char *context, const char *fmt)
e5c382
 {
e5c382
-- 
e5c382
2.1.4
e5c382