]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a compiler warning on MS-Windows due to recent changes.
authorEli Zaretskii <eliz@gnu.org>
Thu, 19 Sep 2013 08:25:43 +0000 (11:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 19 Sep 2013 08:25:43 +0000 (11:25 +0300)
 src/w32reg.c (w32_get_string_resource): Make the first 2 arguments
 'const char *' to avoid compiler warnings due to similar change in
 the prototype of x_get_string_resource.

src/ChangeLog
src/w32reg.c

index d900818231eddd3051fa92084b3fd0c5a12839b4..ff5d265e51f0c71d06e9acaf82eede63f9507155 100644 (file)
@@ -1,3 +1,9 @@
+2013-09-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32reg.c (w32_get_string_resource): Make the first 2 arguments
+       'const char *' to avoid compiler warnings due to similar change in
+       the prototype of x_get_string_resource.
+
 2013-09-19  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * xterm.h (struct x_display_info): New members last_mouse_glyph_frame,
index 9d088538e0b43492ab1139c6f00eb043ea6fbd41..c41675019dd96e87c8674f5ae95153b1158833aa 100644 (file)
@@ -74,7 +74,7 @@ w32_get_rdb_resource (char *rdb, const char *resource)
 }
 
 static LPBYTE
-w32_get_string_resource (char *name, char *class, DWORD dwexptype)
+w32_get_string_resource (const char *name, const char *class, DWORD dwexptype)
 {
   LPBYTE lpvalue = NULL;
   HKEY hrootkey = NULL;
@@ -92,7 +92,7 @@ w32_get_string_resource (char *name, char *class, DWORD dwexptype)
 
   if (RegOpenKeyEx (hive, REG_ROOT, 0, KEY_READ, &hrootkey) == ERROR_SUCCESS)
     {
-      char *keyname;
+      const char *keyname;
 
       if (RegQueryValueEx (hrootkey, name, NULL, &dwType, NULL, &cbData) == ERROR_SUCCESS
          && dwType == dwexptype)