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