VirtualBox

Changeset 48020 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Aug 23, 2013 12:02:42 PM (11 years ago)
Author:
vboxsync
Message:

Main/solaris: Warnings because Solaris doesn't know when to use const.

Location:
trunk/src/VBox/Main/src-server/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/solaris/NetIf-solaris.cpp

    r48016 r48020  
    8686    }
    8787
    88     kstat_t *ksAdapter = kstat_lookup(kc, "link", -1, (char *)name);
     88    kstat_t *ksAdapter = kstat_lookup(kc, (char *)"link", -1, (char *)name);
    8989    if (ksAdapter == 0)
    9090    {
    9191        char szModule[KSTAT_STRLEN];
    9292        uint32_t uInstance = getInstance(name, szModule);
    93         ksAdapter = kstat_lookup(kc, szModule, uInstance, "phys");
     93        ksAdapter = kstat_lookup(kc, szModule, uInstance, (char *)"phys");
    9494        if (ksAdapter == 0)
    9595            ksAdapter = kstat_lookup(kc, szModule, uInstance, (char*)name);
  • trunk/src/VBox/Main/src-server/solaris/PerformanceSolaris.cpp

    r48009 r48020  
    385385    AssertReturn(strlen(name) < KSTAT_STRLEN, VERR_INVALID_PARAMETER);
    386386    LogFlowThisFunc(("m=%s i=%d n=%s\n", "link", -1, name));
    387     kstat_t *ksAdapter = kstat_lookup(mKC, "link", -1, (char *)name);
     387    kstat_t *ksAdapter = kstat_lookup(mKC, (char *)"link", -1, (char *)name);
    388388    if (ksAdapter == 0)
    389389    {
     
    391391        uint32_t uInstance = getInstance(name, szModule);
    392392        LogFlowThisFunc(("m=%s i=%u n=%s\n", szModule, uInstance, "phys"));
    393         ksAdapter = kstat_lookup(mKC, szModule, uInstance, "phys");
     393        ksAdapter = kstat_lookup(mKC, szModule, uInstance, (char *)"phys");
    394394        if (ksAdapter == 0)
    395395        {
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