]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_encodings.c
xnu-517.7.7.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_encodings.c
index 185e145034e593d6b2be418324083213db304ad1..4c2229c95872e7bb22d1c5664ef3e0f2d9087f6a 100644 (file)
@@ -52,7 +52,7 @@ extern struct host realhost;
 
 #define MAX_HFS_UNICODE_CHARS  (15*5)
 
-int mac_roman_to_unicode(Str31 hfs_str, UniChar *uni_str, UInt32 maxCharLen, UInt32 *usedCharLen);
+int mac_roman_to_unicode(const Str31 hfs_str, UniChar *uni_str, UInt32 maxCharLen, UInt32 *usedCharLen);
 
 static int unicode_to_mac_roman(UniChar *uni_str, UInt32 unicodeChars, Str31 hfs_str);
 
@@ -199,7 +199,7 @@ hfs_relconverter(UInt32 encoding)
                                encp = NULL;
 
                                simple_unlock(&hfs_encoding_list_slock);
-                               kmod_destroy(host_priv_self(), id);
+                               kmod_destroy((host_priv_t) host_priv_self(), id);
                                simple_lock(&hfs_encoding_list_slock);
                        }
                        break;
@@ -611,7 +611,7 @@ static UniChar gHiBitCombUnicode[128] = {
  * Unicode output is fully decomposed
  */
 int
-mac_roman_to_unicode(Str31 hfs_str, UniChar *uni_str,
+mac_roman_to_unicode(const Str31 hfs_str, UniChar *uni_str,
                                UInt32 maxCharLen, UInt32 *unicodeChars)
 {
        const UInt8  *p;