changeset 31824:e26b1c667fd8

Add const to avoid warnings. The const on the return type is not correct compared to the real win32 API functions, but that really does not matter for us, avoiding the warning is more useful.
author reimar
date Mon, 02 Aug 2010 17:32:42 +0000
parents 73c4715af8c0
children 544f29a58a6b
files loader/win32.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Mon Aug 02 17:30:00 2010 +0000
+++ b/loader/win32.c	Mon Aug 02 17:32:42 2010 +0000
@@ -4995,8 +4995,8 @@
     return 1;
 }
 
-static char * WINAPI expPathFindExtensionA(const char *path) {
-  char *ext;
+static const char * WINAPI expPathFindExtensionA(const char *path) {
+  const char *ext;
   if (!path)
     ext = NULL;
   else {
@@ -5008,8 +5008,8 @@
   return ext;
 }
 
-static char * WINAPI expPathFindFileNameA(const char *path) {
-  char *name;
+static const char * WINAPI expPathFindFileNameA(const char *path) {
+  const char *name;
   if (!path || strlen(path) < 2)
     name = path;
   else {