[darwinbuild-changes] [28] trunk/darwinxref
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:38:40 PDT 2006
Revision: 28
http://trac.macosforge.org/projects/darwinbuild/changeset/28
Author: kevin
Date: 2006-10-04 01:38:40 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
- fixed compiler warning
Modified Paths:
--------------
trunk/darwinxref/DBTclPlugin.c
trunk/darwinxref/cfutils.c
Modified: trunk/darwinxref/DBTclPlugin.c
===================================================================
--- trunk/darwinxref/DBTclPlugin.c 2005-07-06 02:38:17 UTC (rev 27)
+++ trunk/darwinxref/DBTclPlugin.c 2006-10-04 08:38:40 UTC (rev 28)
@@ -43,7 +43,7 @@
int length;
char* buf = Tcl_GetStringFromObj(obj, &length);
if (buf) {
- result = CFStringCreateWithBytes(NULL, buf, length, kCFStringEncodingUTF8, 0);
+ result = CFStringCreateWithBytes(NULL, (UInt8*)buf, length, kCFStringEncodingUTF8, 0);
}
return result;
}
@@ -296,4 +296,4 @@
return exitCode;
}
-#endif /* HAVE_TCL_PLUGINS */
\ No newline at end of file
+#endif /* HAVE_TCL_PLUGINS */
Modified: trunk/darwinxref/cfutils.c
===================================================================
--- trunk/darwinxref/cfutils.c 2005-07-06 02:38:17 UTC (rev 27)
+++ trunk/darwinxref/cfutils.c 2006-10-04 08:38:40 UTC (rev 28)
@@ -54,7 +54,7 @@
CFIndex size = CFStringGetMaximumSizeForEncoding(length, kCFStringEncodingUTF8);
result = malloc(size+1);
if (result != NULL) {
- length = CFStringGetBytes(str, CFRangeMake(0, length), kCFStringEncodingUTF8, '?', 0, result, size, NULL);
+ length = CFStringGetBytes(str, CFRangeMake(0, length), kCFStringEncodingUTF8, '?', 0, (UInt8*)result, size, NULL);
result[length] = 0;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/76558a45/attachment.html
More information about the darwinbuild-changes
mailing list