VirtualBox

Changeset 49598 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 21, 2013 10:36:22 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90804
Message:

warnings in normally disabled legacy code

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r49471 r49598  
    84878487            RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), str.c_str()); /** @todo bitch about names which are too long... */
    84888488            IfReq.ifr_flags = IFF_TAP | IFF_NO_PI;
    8489             rcVBox = ioctl(maTapFD[slot], TUNSETIFF, &IfReq);
     8489            rcVBox = ioctl(RTFileToNative(maTapFD[slot]), TUNSETIFF, &IfReq);
    84908490            if (rcVBox != 0)
    84918491            {
     
    85018501             * Make it pollable.
    85028502             */
    8503             if (fcntl(maTapFD[slot], F_SETFL, O_NONBLOCK) != -1)
     8503            if (fcntl(RTFileToNative(maTapFD[slot]), F_SETFL, O_NONBLOCK) != -1)
    85048504            {
    85058505                Log(("attachToTapInterface: %RTfile %ls\n", maTapFD[slot], tapDeviceName.raw()));
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r49588 r49598  
    43724372                }
    43734373
    4374                 Assert((int)maTapFD[uInstance] >= 0);
    4375                 if ((int)maTapFD[uInstance] >= 0)
     4374                Assert((intptr_t)maTapFD[uInstance] >= 0);
     4375                if ((intptr_t)maTapFD[uInstance] >= 0)
    43764376                {
    43774377                    InsertConfigString(pLunL0, "Driver", "HostInterface");
    43784378                    InsertConfigNode(pLunL0, "Config", &pCfg);
    4379                     InsertConfigInteger(pCfg, "FileHandle", maTapFD[uInstance]);
     4379                    InsertConfigInteger(pCfg, "FileHandle", (intptr_t)maTapFD[uInstance]);
    43804380                }
    43814381
     
    45714571                    }
    45724572
    4573                     Assert((int)maTapFD[uInstance] >= 0);
    4574                     if ((int)maTapFD[uInstance] >= 0)
     4573                    Assert((intptr_t)maTapFD[uInstance] >= 0);
     4574                    if ((intptr_t)maTapFD[uInstance] >= 0)
    45754575                    {
    45764576                        InsertConfigString(pLunL0, "Driver", "HostInterface");
    45774577                        InsertConfigNode(pLunL0, "Config", &pCfg);
    4578                         InsertConfigInteger(pCfg, "FileHandle", maTapFD[uInstance]);
     4578                        InsertConfigInteger(pCfg, "FileHandle", (intptr_t)maTapFD[uInstance]);
    45794579                    }
    45804580                    break;
Note: See TracChangeset for help on using the changeset viewer.

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