svn commit: r1933245 - subversion/trunk/subversion/libsvn_subr

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177686454488.1559331.10109254264277566636@svn03-he-fi>
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.