SF.net SVN: geany: [886] trunk/tagmanager/diff.c

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Oct 12 10:45:52 UTC 2006


Revision: 886
          http://svn.sourceforge.net/geany/?rev=886&view=rev
Author:   eht16
Date:     2006-10-12 03:45:49 -0700 (Thu, 12 Oct 2006)

Log Message:
-----------
Fixed compiler warnings.

Modified Paths:
--------------
    trunk/tagmanager/diff.c

Modified: trunk/tagmanager/diff.c
===================================================================
--- trunk/tagmanager/diff.c	2006-10-11 22:15:26 UTC (rev 885)
+++ trunk/tagmanager/diff.c	2006-10-12 10:45:49 UTC (rev 886)
@@ -50,13 +50,13 @@
 			cp += 4;
 			if (isspace ((int) *cp)) continue;
 
-			tmp = strrchr(cp, '/');
+			tmp = (const unsigned char*) strrchr((const char*) cp,  '/');
 			if (tmp == NULL)
 			{	// if no / is contained try \ in case of a Windows filename
-				tmp = strrchr(cp, '\\');
+				tmp = (const unsigned char*) strrchr((const char*) cp, '\\');
 				if (tmp == NULL)
 				{	// last fallback, probably the filename doesn't contain a path, so take it
-					if (strlen(cp) > 0)
+					if (strlen((const char*) cp) > 0)
 					{
 						tmp = cp;
 						skipSlash = FALSE;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list