aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-03-24 18:22:07 +0000
committerGuy Harris <guy@alum.mit.edu>2013-03-24 18:22:07 +0000
commit7a9158418c70416fd6dc780078840ecee5d9df5b (patch)
treed6ae8fa5132863bb24f36374bd3a0c88e0436bfd /version_info.c
parent986d423b5b4528a9e86df1a96840a39c763f3572 (diff)
Replace implicit conversions with explicit casts.
svn path=/trunk/; revision=48534
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/version_info.c b/version_info.c
index a70bb03e78..9743ff1ae3 100644
--- a/version_info.c
+++ b/version_info.c
@@ -192,7 +192,8 @@ get_string_from_dictionary(CFPropertyListRef dict, CFStringRef key)
{
CFStringRef cfstring;
- cfstring = CFDictionaryGetValue(dict, key);
+ cfstring = (CFStringRef)CFDictionaryGetValue((CFDictionaryRef)dict,
+ (const void *)key);
if (cfstring == NULL)
return NULL;
if (CFGetTypeID(cfstring) != CFStringGetTypeID()) {
@@ -263,11 +264,11 @@ get_os_x_version_info(GString *str)
}
}
#ifdef HAVE_CFPROPERTYLISTCREATEWITHSTREAM
- version_dict = CFPropertyListCreateWithStream(NULL,
+ version_dict = (CFDictionaryRef)CFPropertyListCreateWithStream(NULL,
version_plist_stream, 0, kCFPropertyListImmutable,
NULL, NULL);
#else
- version_dict = CFPropertyListCreateFromStream(NULL,
+ version_dict = (CFDictionaryRef)CFPropertyListCreateFromStream(NULL,
version_plist_stream, 0, kCFPropertyListImmutable,
NULL, NULL);
#endif