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