Author: ivan
Date: Wed Apr 22 13:29:04 2026
New Revision: 1933245

Log:
* subversion/libsvn_subr/sysinfo.c
  (wcs_to_utf8, registry_value): Return `const char *` instead of `char *`.

Modified:
   subversion/trunk/subversion/libsvn_subr/sysinfo.c

Modified: subversion/trunk/subversion/libsvn_subr/sysinfo.c
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/sysinfo.c   Wed Apr 22 13:03:25 
2026        (r1933244)
+++ subversion/trunk/subversion/libsvn_subr/sysinfo.c   Wed Apr 22 13:29:04 
2026        (r1933245)
@@ -962,7 +962,7 @@ win32_canonical_host(apr_pool_t *pool)
 }
 
 /* Convert a Unicode string to UTF-8. */
-static char *
+static const char *
 wcs_to_utf8(const wchar_t *wcs, apr_pool_t *pool)
 {
   const int bufsize = WideCharToMultiByte(CP_UTF8, 0, wcs, -1,
@@ -977,7 +977,7 @@ wcs_to_utf8(const wchar_t *wcs, apr_pool
 }
 
 /* Query the value called NAME of the registry key HKEY. */
-static char *
+static const char *
 registry_value(HKEY hkey, wchar_t *name, apr_pool_t *pool)
 {
   DWORD size;

Reply via email to