return (ERROR);
}
*cfxp = *fxp;
- ((caddr_t) cfxp) += bytesPerSector;
+ cfxp = (u_int16_t *)(((caddr_t)cfxp) + bytesPerSector);
}
return (0);
}
}
static int
-memcmp(char *p1, char *p2, int len)
+memcmp(const char *p1, const char *p2, int len)
{
while (len--) {
if (*p1++ != *p2++)
/*
* Check the "NTFS " signature.
*/
- if (memcmp(boot->bf_sysid, "NTFS ", 8) != 0)
+ if (memcmp((const char *)boot->bf_sysid, "NTFS ", 8) != 0)
{
goto error;
}
str[0] = '\0';
- utf_encodestr( nameAttr, nameSize / 2, str, strMaxLen, OSLittleEndian );
+ utf_encodestr( nameAttr, nameSize / 2, (u_int8_t *)str, strMaxLen, OSLittleEndian );
free(buf);
return;