From: Joseph Sutton Date: Sun, 29 Oct 2023 22:04:58 +0000 (+1300) Subject: s4:torture: Make static variables constant X-Git-Tag: talloc-2.4.2~912 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ec7578e79cf821e6dc8945eee393635cd4c62ca;p=thirdparty%2Fsamba.git s4:torture: Make static variables constant Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/ndr/string.c b/source4/torture/ndr/string.c index 5422a90e947..9742c8e8fdb 100644 --- a/source4/torture/ndr/string.c +++ b/source4/torture/ndr/string.c @@ -18,10 +18,10 @@ static const char utf8[] = { 0x6b, 0x61, 0x6d, 0x65, 0x6c, 0xc3, 0xa5, 0xc3, 0xb2, 0x00 }; /* purely for convenience */ -static int fl_ascii_null = LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM; -static int fl_ascii_noterm = LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING; -static int fl_utf8_null = LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM; -static int fl_raw8_null = LIBNDR_FLAG_STR_RAW8|LIBNDR_FLAG_STR_NULLTERM; +static const int fl_ascii_null = LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM; +static const int fl_ascii_noterm = LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING; +static const int fl_utf8_null = LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM; +static const int fl_raw8_null = LIBNDR_FLAG_STR_RAW8|LIBNDR_FLAG_STR_NULLTERM; static bool test_ndr_push_string (struct torture_context *tctx, const char *string,