Blame 0083-zdtm-zdtm_ct-fix-compilation-error-with-strict-proto.patch
|
Radostin Stoyanov |
46abdd7 |
From e0bf87fecbcc353d697dccd3fe0801347caf1423 Mon Sep 17 00:00:00 2001
|
|
Radostin Stoyanov |
46abdd7 |
From: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
|
|
Radostin Stoyanov |
46abdd7 |
Date: Sat, 18 Dec 2021 11:03:53 +0300
|
|
Radostin Stoyanov |
46abdd7 |
Subject: [PATCH 083/120] zdtm: zdtm_ct fix compilation error with
|
|
Radostin Stoyanov |
46abdd7 |
strict-prototypes on
|
|
Radostin Stoyanov |
46abdd7 |
MIME-Version: 1.0
|
|
Radostin Stoyanov |
46abdd7 |
Content-Type: text/plain; charset=UTF-8
|
|
Radostin Stoyanov |
46abdd7 |
Content-Transfer-Encoding: 8bit
|
|
Radostin Stoyanov |
46abdd7 |
|
|
Radostin Stoyanov |
46abdd7 |
zdtm_ct.c:44:12: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
|
|
Radostin Stoyanov |
46abdd7 |
44 | static int create_timens()
|
|
Radostin Stoyanov |
46abdd7 |
|
|
Radostin Stoyanov |
46abdd7 |
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
|
|
Radostin Stoyanov |
46abdd7 |
---
|
|
Radostin Stoyanov |
46abdd7 |
test/zdtm_ct.c | 2 +-
|
|
Radostin Stoyanov |
46abdd7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Radostin Stoyanov |
46abdd7 |
|
|
Radostin Stoyanov |
46abdd7 |
diff --git a/test/zdtm_ct.c b/test/zdtm_ct.c
|
|
Radostin Stoyanov |
46abdd7 |
index e4b17a512..0e8eeff8a 100644
|
|
Radostin Stoyanov |
46abdd7 |
--- a/test/zdtm_ct.c
|
|
Radostin Stoyanov |
46abdd7 |
+++ b/test/zdtm_ct.c
|
|
Radostin Stoyanov |
46abdd7 |
@@ -41,7 +41,7 @@ static inline int _settime(clockid_t clk_id, time_t offset)
|
|
Radostin Stoyanov |
46abdd7 |
return 0;
|
|
Radostin Stoyanov |
46abdd7 |
}
|
|
Radostin Stoyanov |
46abdd7 |
|
|
Radostin Stoyanov |
46abdd7 |
-static int create_timens()
|
|
Radostin Stoyanov |
46abdd7 |
+static int create_timens(void)
|
|
Radostin Stoyanov |
46abdd7 |
{
|
|
Radostin Stoyanov |
46abdd7 |
struct utsname buf;
|
|
Radostin Stoyanov |
46abdd7 |
unsigned major, minor;
|
|
Radostin Stoyanov |
46abdd7 |
--
|
|
Radostin Stoyanov |
46abdd7 |
2.34.1
|
|
Radostin Stoyanov |
46abdd7 |
|