VirtualBox

Changeset 47968 in vbox


Ignore:
Timestamp:
Aug 21, 2013 1:29:38 PM (11 years ago)
Author:
vboxsync
Message:

Runtime/r3/solaris/mp-solaris: Explicit cast to char*, Solaris need to fix their API to be const correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/mp-solaris.cpp

    r44529 r47968  
    126126 * @param   pszStatName     The cpu_info stat name.
    127127 */
    128 static uint64_t rtMpSolarisGetFrequency(RTCPUID idCpu, char *pszStatName)
     128static uint64_t rtMpSolarisGetFrequency(RTCPUID idCpu, const char *pszStatName)
    129129{
    130130    uint64_t u64 = 0;
     
    141141                if (kstat_read(g_pKsCtl, g_papCpuInfo[idCpu], 0) != -1)
    142142                {
    143                     kstat_named_t *pStat = (kstat_named_t *)kstat_data_lookup(g_papCpuInfo[idCpu], pszStatName);
     143                    kstat_named_t *pStat = (kstat_named_t *)kstat_data_lookup(g_papCpuInfo[idCpu], (char*)pszStatName);
    144144                    if (pStat)
    145145                    {
     
    176176RTDECL(uint32_t) RTMpGetCurFrequency(RTCPUID idCpu)
    177177{
     178    /* Solaris really need to fix their APIs. */
    178179    return rtMpSolarisGetFrequency(idCpu, "current_clock_Hz") / 1000000;
    179180}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette