From b223d5da884eb2f2540b72b3a1c5baec1cf21c77 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 28 Jan 2025 06:04:39 +0100 Subject: [PATCH] lib: Remove a pointer from R/W .data Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/string_replace.c | 2 +- source3/lib/string_replace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/lib/string_replace.c b/source3/lib/string_replace.c index fdf32276a57..50fd83272e1 100644 --- a/source3/lib/string_replace.c +++ b/source3/lib/string_replace.c @@ -183,7 +183,7 @@ int string_replace_allocate(connection_struct *conn, return 0; } -const char *macos_string_replace_map = +const char macos_string_replace_map[] = "0x01:0xf001,0x02:0xf002,0x03:0xf003,0x04:0xf004," "0x05:0xf005,0x06:0xf006,0x07:0xf007,0x08:0xf008," "0x09:0xf009,0x0a:0xf00a,0x0b:0xf00b,0x0c:0xf00c," diff --git a/source3/lib/string_replace.h b/source3/lib/string_replace.h index 671dbf87852..76fe2c7690b 100644 --- a/source3/lib/string_replace.h +++ b/source3/lib/string_replace.h @@ -32,4 +32,4 @@ int string_replace_allocate(connection_struct *conn, char **mapped_name, enum vfs_translate_direction direction); -extern const char *macos_string_replace_map; +extern const char macos_string_replace_map[]; -- 2.47.2