From 55f3c8901d6807e92edbf1129aeb6df6c99b11c3 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 12 Jan 2016 05:02:08 +0000 Subject: [PATCH] tests: fix clang "duplicate 'const' declaration specifier" warnings * tests/ksysent.c (pstr_t): Remove second const specifier. * tests/mmsg.c (main): Remove second const specifier from one[], two[], and three[]. --- tests/ksysent.c | 2 +- tests/mmsg.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ksysent.c b/tests/ksysent.c index 1d099177..66b4ffb4 100644 --- a/tests/ksysent.c +++ b/tests/ksysent.c @@ -45,7 +45,7 @@ static const struct_sysent syscallent[] = { #include "syscallent.h" }; -typedef const char const *pstr_t; +typedef const char *pstr_t; static const pstr_t ksyslist[] = { #include "ksysent.h" }; diff --git a/tests/mmsg.c b/tests/mmsg.c index 0c9c7115..ba7fc3e2 100644 --- a/tests/mmsg.c +++ b/tests/mmsg.c @@ -90,9 +90,9 @@ main(void) assert(R == sv[0]); assert(W == sv[1]); - static const char const one[] = "one"; - static const char const two[] = "two"; - static const char const three[] = "three"; + static const char one[] = "one"; + static const char two[] = "two"; + static const char three[] = "three"; void *copy_one = tail_memdup(one, sizeof(one) - 1); void *copy_two = tail_memdup(two, sizeof(two) - 1); void *copy_three = tail_memdup(three, sizeof(three) - 1); -- 2.50.1