summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas@halo.gen.nz>2017-02-25 13:38:17 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-03-02 04:35:14 +0100
commitf1b2d356585d43f2bac24d5c32cbef4a90c43f36 (patch)
tree601e739fa108de89c25ae30bd234a6a2dec6e059 /source4/torture/ndr
parent41204a4972ea62b7b656ad81e24bd052990f7e87 (diff)
downloadsamba-f1b2d356585d43f2bac24d5c32cbef4a90c43f36.tar.gz
ndr tests: silence a harmless warning
gcc 7. "duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier]" Signed-off-by: Douglas Bagnall <douglas@halo.gen.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture/ndr')
-rw-r--r--source4/torture/ndr/string.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source4/torture/ndr/string.c b/source4/torture/ndr/string.c
index b682555dc42..a53acaa5b91 100644
--- a/source4/torture/ndr/string.c
+++ b/source4/torture/ndr/string.c
@@ -4,18 +4,18 @@
#include "../lib/util/dlinklist.h"
#include "param/param.h"
-static const char const *ascii = "ascii";
+static const char *ascii = "ascii";
/* the following is equivalent to "kamelåså öäüÿéèóò" in latin1 */
-static const char const latin1[] = { 0x6b, 0x61, 0x6d, 0x65, 0x6c, 0xe5, 0x73,
- 0xe5, 0x20, 0xF6, 0xE4, 0xFC, 0xFF, 0xE9,
- 0xE8, 0xF3, 0xF2, 0x00 };
+static const char latin1[] = { 0x6b, 0x61, 0x6d, 0x65, 0x6c, 0xe5, 0x73,
+ 0xe5, 0x20, 0xF6, 0xE4, 0xFC, 0xFF, 0xE9,
+ 0xE8, 0xF3, 0xF2, 0x00 };
/* the following is equivalent to "kamelåså ☺☺☺ öäüÿéèóò" in utf8 */
-static const char const utf8[] = { 0x6b, 0x61, 0x6d, 0x65, 0x6c, 0xc3, 0xa5,
- 0x73, 0xc3, 0xa5, 0x20, 0xE2, 0x98, 0xBA,
- 0xE2, 0x98, 0xBA, 0xE2, 0x98, 0xBA, 0x20,
- 0xc3, 0xb6, 0xc3, 0xa4, 0xc3, 0xbc, 0xc3,
- 0xbf, 0xc3, 0xa9, 0xc3, 0xa8, 0xc3, 0xb3,
- 0xc3, 0xb2, 0x00 };
+static const char utf8[] = { 0x6b, 0x61, 0x6d, 0x65, 0x6c, 0xc3, 0xa5,
+ 0x73, 0xc3, 0xa5, 0x20, 0xE2, 0x98, 0xBA,
+ 0xE2, 0x98, 0xBA, 0xE2, 0x98, 0xBA, 0x20,
+ 0xc3, 0xb6, 0xc3, 0xa4, 0xc3, 0xbc, 0xc3,
+ 0xbf, 0xc3, 0xa9, 0xc3, 0xa8, 0xc3, 0xb3,
+ 0xc3, 0xb2, 0x00 };
/* purely for convenience */
static int fl_ascii_null = LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM;