]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove a pointer from R/W .data
authorVolker Lendecke <vl@samba.org>
Tue, 28 Jan 2025 05:04:39 +0000 (06:04 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Feb 2025 00:07:30 +0000 (00:07 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/string_replace.c
source3/lib/string_replace.h

index fdf32276a57f47bd9a43af1f73805efa97ed2d79..50fd83272e1a283a05a65eb3cb916d3f1b698306 100644 (file)
@@ -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,"
index 671dbf87852859097f36ddafe8720d119d88d2e8..76fe2c7690b8c87f85c56202b6a3c2bb5c9b506a 100644 (file)
@@ -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[];