[MPlayer-cvslog] r31903 - trunk/loader/win32.c
reimar
subversion at mplayerhq.hu
Mon Aug 2 19:32:42 CEST 2010
Author: reimar
Date: Mon Aug 2 19:32:42 2010
New Revision: 31903
Log:
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.
Modified:
trunk/loader/win32.c
Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c Mon Aug 2 19:30:00 2010 (r31902)
+++ trunk/loader/win32.c Mon Aug 2 19:32:42 2010 (r31903)
@@ -4995,8 +4995,8 @@ static WIN_BOOL WINAPI expGetOpenFileNam
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 @@ static char * WINAPI expPathFindExtensio
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 {
More information about the MPlayer-cvslog
mailing list