VirtualBox

Changeset 43806 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Nov 5, 2012 5:41:26 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81821
Message:

Main/ConsoleImpl2: build fix for ancient gcc versions (see r81663, lnx32-rel)

File:
1 edited

Legend:

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

    r43754 r43806  
    16321632                        { "SataLUN1", "SataLUN2", "SataLUN3", "SataLUN4" };
    16331633
    1634                         LONG lPortNum = 0;
    16351634                        LONG lPortLUN[MAX_SATA_LUN_COUNT];
    16361635                        LONG lPortUsed[MAX_SATA_PORTS];
    16371636                        uint32_t u32HDSataPortCount = 0;
    1638                         uint32_t u32MaxPortCount = MAX_SATA_LUN_COUNT;
    1639                         size_t uNumAttachments = 0;
    1640                         DeviceType_T lType;
    1641                         com::SafeIfaceArray<IMediumAttachment> atts;
    16421637
    16431638                        /* init to max value */
     
    16491644                        }
    16501645
    1651 
     1646                        com::SafeIfaceArray<IMediumAttachment> atts;
    16521647                        hrc = pMachine->GetMediumAttachmentsOfController(controllerName.raw(),
    16531648                                                            ComSafeArrayAsOutParam(atts));  H();
    1654                         uNumAttachments = atts.size();
     1649                        size_t uNumAttachments = atts.size();
    16551650                        if (uNumAttachments > MAX_SATA_PORTS)
    16561651                        {
     
    16651660                        {
    16661661                            IMediumAttachment *pMediumAtt = atts[j];
     1662                            LONG lPortNum = 0;
    16671663                            hrc = pMediumAtt->COMGETTER(Port)(&lPortNum);                   H();
    16681664                            if(SUCCEEDED(hrc))
     1665                            {
     1666                                DeviceType_T lType;
    16691667                                hrc = pMediumAtt->COMGETTER(Type)(&lType);                    H();
    16701668                                if(SUCCEEDED(hrc) && lType == DeviceType_HardDisk)
     
    16761674                                    LogFlowFunc(("HD Sata port Count=%d\n", u32HDSataPortCount));
    16771675                                }
     1676                             }
    16781677                        }
    16791678
     
    16821681                         * to save details for every 30 ports
    16831682                         */
     1683                        uint32_t u32MaxPortCount = MAX_SATA_LUN_COUNT;
    16841684                        if (u32HDSataPortCount < MAX_SATA_LUN_COUNT)
    16851685                            u32MaxPortCount = u32HDSataPortCount;
     
    16891689                                                              u32HDSataPortCount);
    16901690                        if (pBiosCfg)
     1691                        {
    16911692                            for (size_t j = 0; j < u32MaxPortCount; j++)
    16921693                            {
     
    16941695                                LogFlowFunc(("Top %d ports = %s, %d\n", j, s_apszBiosConfig[j], lPortLUN[j]));
    16951696                            }
     1697                        }
    16961698                    }
    16971699
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