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