VirtualBox

Changeset 28434 in vbox


Ignore:
Timestamp:
Apr 17, 2010 6:08:28 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60205
Message:

*: whitespace cleanups by scm and two manually picked nits.

Location:
trunk
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestControlSvc.h

    r28402 r28434  
    9191    uint32_t u32PID;
    9292    /* The process status. */
    93     uint32_t u32Status;   
     93    uint32_t u32Status;
    9494    /** Optional flags (not used atm). */
    9595    uint32_t u32Flags;
     
    9898    /** Size of optional data buffer (not used atm). */
    9999    uint32_t cbData;
    100    
     100
    101101} HOSTEXECCALLBACKDATA, *PHOSTEXECCALLBACKDATA;
    102102
  • trunk/include/VBox/VMMDev.h

    r28415 r28434  
    10711071 * Shared region description
    10721072 */
    1073 typedef struct 
     1073typedef struct
    10741074{
    10751075    RTGCPTR64           GCRegionAddr;
     
    10841084 * Shared module registration
    10851085 */
    1086 typedef struct 
     1086typedef struct
    10871087{
    10881088    /** Header. */
     
    11071107 * Shared module unregistration
    11081108 */
    1109 typedef struct 
     1109typedef struct
    11101110{
    11111111    /** Header. */
  • trunk/include/VBox/gmm.h

    r28422 r28434  
    533533GMMR3DECL(int)  GMMR3BalloonedPages(PVM pVM, GMMBALLOONACTION enmAction, uint32_t cBalloonedPages);
    534534GMMR3DECL(int)  GMMR3QueryVMMMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages);
    535 GMMR3DECL(int)  GMMR3RegisterSharedModule(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, 
     535GMMR3DECL(int)  GMMR3RegisterSharedModule(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,
    536536                                          unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions);
    537537GMMR3DECL(int)  GMMR3UnregisterSharedModule(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule);
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk

    r28403 r28434  
    111111ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
    112112 VBoxGuestR3Lib_SOURCES   += \
    113         VBoxGuestR3LibDaemonize.cpp \
    114         VBoxGuestR3LibMouse.cpp \
    115         VBoxGuestR3LibSeamless.cpp \
    116         VBoxGuestR3LibVideo.cpp
     113        VBoxGuestR3LibDaemonize.cpp \
     114        VBoxGuestR3LibMouse.cpp \
     115        VBoxGuestR3LibSeamless.cpp \
     116        VBoxGuestR3LibVideo.cpp
    117117endif
    118118ifdef VBOX_WITH_GUEST_PROPS
    119119 VBoxGuestR3Lib_SOURCES   += \
    120         VBoxGuestR3LibGuestProp.cpp \
    121         VBoxGuestR3LibHostVersion.cpp
     120        VBoxGuestR3LibGuestProp.cpp \
     121        VBoxGuestR3LibHostVersion.cpp
    122122endif
    123123ifdef VBOX_WITH_GUEST_CONTROL
    124124 VBoxGuestR3Lib_SOURCES   += \
    125         VBoxGuestR3LibGuestCtrl.cpp
     125        VBoxGuestR3LibGuestCtrl.cpp
    126126endif
    127127ifdef VBOX_WITH_PAGE_SHARING
    128128 VBoxGuestR3Lib_SOURCES   += \
    129         VBoxGuestR3LibModule.cpp
     129        VBoxGuestR3LibModule.cpp
    130130endif
    131131
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestCtrl.cpp

    r28402 r28434  
    231231 ** @todo Docs!
    232232 */
    233 VBGLR3DECL(int) VbglR3GuestCtrlExecReportStatus(uint32_t     u32ClientId, 
     233VBGLR3DECL(int) VbglR3GuestCtrlExecReportStatus(uint32_t     u32ClientId,
    234234                                                uint32_t     u32Context,
    235235                                                uint32_t     u32PID,
     
    259259            rc = rc2;
    260260    }
    261     return rc; 
    262 }
    263 
     261    return rc;
     262}
     263
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibModule.cpp

    r28433 r28434  
    4848 * @param   pRegions            Shared region(s)
    4949 */
    50 VBGLR3DECL(int) VbglR3RegisterSharedModule(char *pszModuleName, char *pszVersion, 
     50VBGLR3DECL(int) VbglR3RegisterSharedModule(char *pszModuleName, char *pszVersion,
    5151                                           RTGCPTR64  GCBaseAddr, uint32_t cbModule,
    5252                                           unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions)
     
    8080    RTMemFree(pReq);
    8181    return rc;
    82    
     82
    8383}
    8484
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r28420 r28434  
    145145    }
    146146    else
    147     {     
    148         rc = VBoxServiceControlExecProcess(uContextID, szCmd, uFlags, szArgs, uNumArgs,                                           
     147    {
     148        rc = VBoxServiceControlExecProcess(uContextID, szCmd, uFlags, szArgs, uNumArgs,
    149149                                           szEnv, cbEnv, uNumEnvVars,
    150150                                           szStdIn, szStdOut, szStdErr,
     
    272272        if (RTListNodeIsLast(&g_GuestControlExecThreads, &pNode->Node))
    273273              break;
    274        
    275         PVBOXSERVICECTRLTHREAD pNext = RTListNodeGetNext(&pNode->Node, VBOXSERVICECTRLTHREAD, Node);       
     274
     275        PVBOXSERVICECTRLTHREAD pNext = RTListNodeGetNext(&pNode->Node, VBOXSERVICECTRLTHREAD, Node);
    276276        pNode = pNext;
    277277    }
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp

    r28420 r28434  
    267267     */
    268268    AssertPtr(pThread);
    269     VBoxServiceVerbose(3, "Control: Process started: PID=%u, CID=%u\n", 
     269    VBoxServiceVerbose(3, "Control: Process started: PID=%u, CID=%u\n",
    270270                       pThread->uPID, pThread->uContextID);
    271271    rc = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID,
    272                                          pThread->uPID, PROC_STS_STARTED, 0 /* u32Flags */, 
     272                                         pThread->uPID, PROC_STS_STARTED, 0 /* u32Flags */,
    273273                                         NULL /* pvData */, 0 /* cbData */);
    274274
     
    384384        /*
    385385         * Need to exit?
    386          */   
     386         */
    387387        if (pThread->fShutdown)
    388388            break;
     
    463463            VBoxServiceError("Control: Process has reached an undefined status!\n");
    464464        }
    465        
    466         VBoxServiceVerbose(3, "Control: Process ended: PID=%u, CID=%u, Status=%u, Flags=%u\n", 
     465
     466        VBoxServiceVerbose(3, "Control: Process ended: PID=%u, CID=%u, Status=%u, Flags=%u\n",
    467467                           pThread->uPID, pThread->uContextID, uStatus, uFlags);
    468468        rc = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID,
     
    529529/** Allocates and gives back a thread data struct which then can be used by the worker thread. */
    530530int VBoxServiceControlExecAllocateThreadData(PVBOXSERVICECTRLTHREAD pThread,
    531                                              uint32_t u32ContextID, 
    532                                              const char *pszCmd, uint32_t uFlags, 
    533                                              const char *pszArgs, uint32_t uNumArgs,                                           
     531                                             uint32_t u32ContextID,
     532                                             const char *pszCmd, uint32_t uFlags,
     533                                             const char *pszArgs, uint32_t uNumArgs,
    534534                                             const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,
    535535                                             const char *pszStdIn, const char *pszStdOut, const char *pszStdErr,
     
    554554
    555555    /* Prepare argument list. */
    556     int rc = RTGetOptArgvFromString(&pThread->papszArgs, (int*)&pThread->uNumArgs, 
     556    int rc = RTGetOptArgvFromString(&pThread->papszArgs, (int*)&pThread->uNumArgs,
    557557                                    (uNumArgs > 0) ? pszArgs : "", NULL);
    558558    /* Did we get the same result? */
     
    592592
    593593    /* Adjust time limit value. */
    594     pThread->uTimeLimitMS = (   (uTimeLimitMS == UINT32_MAX) 
     594    pThread->uTimeLimitMS = (   (uTimeLimitMS == UINT32_MAX)
    595595                             || (uTimeLimitMS == 0)) ?
    596596                             RT_INDEFINITE_WAIT : uTimeLimitMS;
     
    695695                                rc = RTProcCreateEx(pThread->pszCmd, pThread->papszArgs, hEnv, pThread->uFlags,
    696696                                                    phStdIn, phStdOut, phStdErr,
    697                                                     strlen(pThread->pszUser) ? pThread->pszUser : NULL, 
    698                                                     strlen(pThread->pszUser) && strlen(pThread->pszPassword) ? pThread->pszPassword : NULL, 
     697                                                    strlen(pThread->pszUser) ? pThread->pszUser : NULL,
     698                                                    strlen(pThread->pszUser) && strlen(pThread->pszPassword) ? pThread->pszPassword : NULL,
    699699                                                    &hProcess);
    700700                                if (RT_SUCCESS(rc))
     
    730730                                else /* Something went wrong; report error! */
    731731                                {
    732                                     int rc2 = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID, pThread->uPID, 
     732                                    int rc2 = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID, pThread->uPID,
    733733                                                                              PROC_STS_ERROR, rc,
    734734                                                                              NULL /* pvData */, 0 /* cbData */);
    735735                                    if (RT_FAILURE(rc2))
    736                                         VBoxServiceError("Control: Could not report process start error! Error: %Rrc (process error %Rrc)\n", 
     736                                        VBoxServiceError("Control: Could not report process start error! Error: %Rrc (process error %Rrc)\n",
    737737                                                         rc2, rc);
    738738                                }
     
    753753
    754754    VbglR3GuestCtrlDisconnect(pThread->uClientID);
    755     VBoxServiceVerbose(3, "Control: Thread of process \"%s\" (PID: %u) ended with rc=%Rrc\n", 
     755    VBoxServiceVerbose(3, "Control: Thread of process \"%s\" (PID: %u) ended with rc=%Rrc\n",
    756756                       pThread->pszCmd, pThread->uPID, rc);
    757757    return rc;
     
    765765}
    766766
    767 int VBoxServiceControlExecProcess(uint32_t uContextID, const char *pszCmd, uint32_t uFlags, 
    768                                   const char *pszArgs, uint32_t uNumArgs,                                           
     767int VBoxServiceControlExecProcess(uint32_t uContextID, const char *pszCmd, uint32_t uFlags,
     768                                  const char *pszArgs, uint32_t uNumArgs,
    769769                                  const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,
    770770                                  const char *pszStdIn, const char *pszStdOut, const char *pszStdErr,
     
    777777    {
    778778        rc = VBoxServiceControlExecAllocateThreadData(pThread,
    779                                                       uContextID, 
    780                                                       pszCmd, uFlags, 
     779                                                      uContextID,
     780                                                      pszCmd, uFlags,
    781781                                                      pszArgs, uNumArgs,
    782                                                       pszEnv, cbEnv, uNumEnvVars, 
    783                                                       pszStdIn, pszStdOut, pszStdErr, 
     782                                                      pszEnv, cbEnv, uNumEnvVars,
     783                                                      pszStdIn, pszStdOut, pszStdErr,
    784784                                                      pszUser, pszPassword,
    785785                                                      uTimeLimitMS);
    786786        if (RT_SUCCESS(rc))
    787787        {
    788             rc = RTThreadCreate(&pThread->Thread, VBoxServiceControlExecThread, 
     788            rc = RTThreadCreate(&pThread->Thread, VBoxServiceControlExecThread,
    789789                                (void *)(PVBOXSERVICECTRLTHREAD*)pThread, 0,
    790790                                RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "Exec");
    791791            if (RT_FAILURE(rc))
    792792            {
    793                 VBoxServiceError("Control: RTThreadCreate failed, rc=%Rrc\n, pThread=%p\n", 
     793                VBoxServiceError("Control: RTThreadCreate failed, rc=%Rrc\n, pThread=%p\n",
    794794                                 rc, pThread);
    795795            }
     
    808808                }
    809809            }
    810    
     810
    811811            if (RT_FAILURE(rc))
    812812                VBoxServiceControlExecDestroyThreadData(pThread);
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

    r28420 r28434  
    231231
    232232#ifdef VBOX_WITH_GUEST_CONTROL
    233 extern int VBoxServiceControlExecProcess(uint32_t uContext, const char *pszCmd, uint32_t uFlags, 
    234                                          const char *pszArgs, uint32_t uNumArgs,                                           
     233extern int VBoxServiceControlExecProcess(uint32_t uContext, const char *pszCmd, uint32_t uFlags,
     234                                         const char *pszArgs, uint32_t uNumArgs,
    235235                                         const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,
    236236                                         const char *pszStdIn, const char *pszStdOut, const char *pszStdErr,
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r28432 r28434  
    4646
    4747#if defined(RT_OS_WINDOWS) && !defined(TARGET_NT4)
    48 #include <tlhelp32.h> 
     48#include <tlhelp32.h>
    4949#include <psapi.h>
    5050
     
    162162                }
    163163            }
    164                
     164
    165165            pBaseAddress = (BYTE *)MemInfo[i].BaseAddress + MemInfo[i].RegionSize;
    166166            if (dwModuleSize > MemInfo[i].RegionSize)
     
    175175    while (dwModuleSize);
    176176
    177     int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR64)pModule->Info.modBaseAddr, 
     177    int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR64)pModule->Info.modBaseAddr,
    178178                                        pModule->Info.modBaseSize, idxRegion, aRegions);
    179179    AssertRC(rc);
     
    238238        }
    239239
    240         printf( "\n\n     MODULE NAME:     %s",           ModuleInfo.szModule ); 
    241         printf( "\n     executable     = %s",             ModuleInfo.szExePath ); 
    242         printf( "\n     process ID     = 0x%08X",         ModuleInfo.th32ProcessID ); 
    243         printf( "\n     base address   = 0x%08X", (DWORD) ModuleInfo.modBaseAddr ); 
    244         printf( "\n     base size      = %d",             ModuleInfo.modBaseSize ); 
     240        printf( "\n\n     MODULE NAME:     %s",           ModuleInfo.szModule );
     241        printf( "\n     executable     = %s",             ModuleInfo.szExePath );
     242        printf( "\n     process ID     = 0x%08X",         ModuleInfo.th32ProcessID );
     243        printf( "\n     base address   = 0x%08X", (DWORD) ModuleInfo.modBaseAddr );
     244        printf( "\n     base size      = %d",             ModuleInfo.modBaseSize );
    245245    }
    246246    while (Module32Next(hSnapshot, &ModuleInfo));
     
    270270    Process32First(hSnapshot, &ProcessInfo);
    271271
    272     do 
     272    do
    273273    {
    274274        VBoxServicePageSharingInspectModules(ProcessInfo.th32ProcessID, &pNewTree);
     
    361361    for (;;)
    362362    {
    363        
     363
    364364        VBoxServicePageSharingInspectGuest();
    365365
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r28253 r28434  
    465465        }
    466466
    467         /* 
     467        /*
    468468         * Don't close this handle right now. We assume that the same file is
    469469         * opened with sf_reg_open() and later closed with sf_reg_close(). Save
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_70.c

    r28372 r28434  
    444444 * This function hooks into the chain that is called when framebuffer access
    445445 * is allowed or disallowed by a call to EnableDisableFBAccess in the server.
    446  * In other words, it observes when the server wishes access to the 
     446 * In other words, it observes when the server wishes access to the
    447447 * framebuffer to be enabled and when it should be disabled.  We need to know
    448448 * this because we disable access ourselves during mode switches (presumably
    449449 * the server should do this but it doesn't) and want to know whether to
    450  * restore it or not afterwards. 
     450 * restore it or not afterwards.
    451451 */
    452452static void
     
    835835    }
    836836    pScrn->vtSema = FALSE;
    837    
     837
    838838    /* Destroy the VGA hardware record */
    839839    vgaHWFreeHWRec(pScrn);
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r28393 r28434  
    48444844    pThis->pDrvBase = NULL;
    48454845    pThis->pDrvR3 = NULL;
    4846     pThis->pDrvR0 = (PPDMINETWORKUPR0)NULL;
    4847     pThis->pDrvRC = (PPDMINETWORKUPRC)NULL;
     4846    pThis->pDrvR0 = NIL_RTR0PTR;
     4847    pThis->pDrvRC = NIL_RTRCPTR;
    48484848
    48494849    PDMCritSectLeave(&pThis->CritSect);
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf.c

    r28191 r28434  
    293293                case EXT_DISPOSABLE:
    294294#ifndef VBOX
    295             /* This code is dead in VBOX port of BSD mbufs (probably will be used for EXT_SBUFS some day) 
     295            /* This code is dead in VBOX port of BSD mbufs (probably will be used for EXT_SBUFS some day)
    296296             * @todo once bsd sbufs will be on trunk think about this code.
    297297             */
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r28397 r28434  
    155155    }
    156156
    157     /* we're on sub-zone we need get chunk of master zone and split 
     157    /* we're on sub-zone we need get chunk of master zone and split
    158158     * it for sub-zone conforming chunks.
    159159     */
     
    168168    zone->max_items ++;
    169169    it = &((struct item *)sub_area)[-1];
    170     /* it's chunk descriptor of master zone we should remove it 
     170    /* it's chunk descriptor of master zone we should remove it
    171171     *  from the master list first
    172172     */
     
    267267        LIST_INSERT_HEAD(&zone->free_items, it, list);
    268268    }
    269    
     269
    270270}
    271271
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r28397 r28434  
    5757
    5858/*
    59  * DO_CHECK_FD_SET is used in dumping events on socket, including POLLNVAL. 
    60  * gcc warns about attempts to log POLLNVAL so construction in a last to lines 
    61  * used to catch POLLNVAL while logging and return false in case of error while 
     59 * DO_CHECK_FD_SET is used in dumping events on socket, including POLLNVAL.
     60 * gcc warns about attempts to log POLLNVAL so construction in a last to lines
     61 * used to catch POLLNVAL while logging and return false in case of error while
    6262 * normal usage.
    6363 */
  • trunk/src/VBox/Devices/Network/slirp/slirp.h

    r28172 r28434  
    8080#endif /* !RT_OS_WINDOWS */
    8181
    82 #if defined(RT_OS_WINDOWS) || defined (RT_OS_SOLARIS) 
     82#if defined(RT_OS_WINDOWS) || defined (RT_OS_SOLARIS)
    8383typedef uint64_t u_int64_t;
    8484typedef char *caddr_t;
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r28023 r28434  
    369369     * (see slirp.c for details about setting so_close member).
    370370     */
    371     if (   tp 
    372         && tp->t_socket 
     371    if (   tp
     372        && tp->t_socket
    373373        && !tp->t_socket->so_close)
    374374        tcp_output(pData, tp);
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r28415 r28434  
    17751775            else
    17761776            {
    1777                 pRequestHeader->rc = PGMR3SharedModuleRegister(pVM, pReqModule->GCBaseAddr, pReqModule->cbModule, 
    1778                                                                pReqModule->szName, pReqModule->szVersion, 
     1777                pRequestHeader->rc = PGMR3SharedModuleRegister(pVM, pReqModule->GCBaseAddr, pReqModule->cbModule,
     1778                                                               pReqModule->szName, pReqModule->szVersion,
    17791779                                                               pReqModule->cRegions, pReqModule->aRegions);
    17801780            }
     
    17921792            else
    17931793            {
    1794                 pRequestHeader->rc = PGMR3SharedModuleUnregister(pVM, pReqModule->GCBaseAddr, pReqModule->cbModule, 
     1794                pRequestHeader->rc = PGMR3SharedModuleUnregister(pVM, pReqModule->GCBaseAddr, pReqModule->cbModule,
    17951795                                                                 pReqModule->szName, pReqModule->szVersion);
    17961796            }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r28358 r28434  
    251251            ULONG uPID = 0;
    252252
    253             if (verbose) 
     253            if (verbose)
    254254            {
    255255                if (uTimeoutMS == 0)
     
    301301                    CHECK_ERROR_RET(progress, COMGETTER(ResultCode)(&iRc), rc);
    302302
    303                     if (verbose) 
     303                    if (verbose)
    304304                        RTPrintf("Process completed.\n");
    305305
     
    310310                        Bstr strOutput;
    311311                        CHECK_ERROR_BREAK(guest, GetProcessOutput(uPID, 0 /* @todo */, strOutput.asOutParam()));
    312                         if (verbose) 
     312                        if (verbose)
    313313                            RTPrintf("Output is:\n");
    314314                        //RTPrintf(strOutput.raw());
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r28348 r28434  
    812812                            if (details == VMINFO_MACHINEREADABLE)
    813813                            {
    814                                 strNatForwardings = Utf8StrFmt("%sForwarding(%d)=\"%s,%s,%s,%s,%s,%s\"\n", 
     814                                strNatForwardings = Utf8StrFmt("%sForwarding(%d)=\"%s,%s,%s,%s,%s,%s\"\n",
    815815                                    strNatForwardings.raw(), i, strName.raw(), strProto.raw(),
    816816                                    strHostIP.isEmpty() ? "": strHostIP.raw(), strHostPort.raw(),
     
    820820                            {
    821821                                strNatForwardings = Utf8StrFmt("%sNIC %d Rule(%d):   name = %s, protocol = %s,"
    822                                     " host ip = %s, host port = %s, guest ip = %s, guest port = %s\n", 
     822                                    " host ip = %s, host port = %s, guest ip = %s, guest port = %s\n",
    823823                                    strNatForwardings.raw(), currentNIC + 1, i, strName.raw(), strProto.raw(),
    824824                                    strHostIP.isEmpty() ? "": strHostIP.raw(), strHostPort.raw(),
     
    832832                        ULONG tcpRcv = 0;
    833833                        driver->GetNetworkSettings(&mtu, &sockSnd, &sockRcv, &tcpSnd, &tcpRcv);
    834                        
     834
    835835                        if (details == VMINFO_MACHINEREADABLE)
    836836                        {
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r28139 r28434  
    11291129            {
    11301130                ComPtr<INetworkAdapter> nic;
    1131    
     1131
    11321132                CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam()));
    11331133                ASSERT(nic);
  • trunk/src/VBox/Main/GuestImpl.cpp

    r28402 r28434  
    266266
    267267STDMETHODIMP Guest::InternalGetStatistics(ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle,
    268                                           ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon, 
    269                                           ULONG *aMemCache, ULONG *aPageTotal, 
     268                                          ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon,
     269                                          ULONG *aMemCache, ULONG *aPageTotal,
    270270                                          ULONG *aMemAllocTotal, ULONG *aMemFreeTotal, ULONG *aMemBalloonTotal)
    271271{
     
    628628            aTimeoutMS = UINT32_MAX;
    629629
    630         /* Prepare arguments. */       
     630        /* Prepare arguments. */
    631631        com::SafeArray<IN_BSTR> args(ComSafeArrayInArg(aArguments));
    632632        uint32_t uNumArgs = args.size();
     
    652652            char *pszArgs = NULL;
    653653            if (uNumArgs > 0)
    654                 vrc = RTGetOptArgvToString(&pszArgs, papszArgv, 0);         
     654                vrc = RTGetOptArgvToString(&pszArgs, papszArgv, 0);
    655655            if (RT_SUCCESS(vrc))
    656656            {
     
    659659                /* Prepare environment. */
    660660                com::SafeArray<IN_BSTR> env(ComSafeArrayInArg(aEnvironment));
    661    
     661
    662662                void *pvEnv = NULL;
    663663                uint32_t uNumEnv = 0;
    664664                uint32_t cbEnv = 0;
    665    
     665
    666666                for (unsigned i = 0; i < env.size(); i++)
    667667                {
     
    672672
    673673                if (RT_SUCCESS(vrc))
    674                 {               
     674                {
    675675                    PHOSTEXECCALLBACKDATA pData = (HOSTEXECCALLBACKDATA*)RTMemAlloc(sizeof(HOSTEXECCALLBACKDATA));
    676676                    AssertPtr(pData);
     
    694694                    paParms[i++].setPointer((void*)Utf8Password.raw(), (uint32_t)strlen(Utf8Password.raw()) + 1);
    695695                    paParms[i++].setUInt32(aTimeoutMS);
    696    
     696
    697697                    /* Forward the information to the VMM device. */
    698698                    AssertPtr(mParent);
     
    712712                LogFlowFunc(("Waiting for HGCM callback (timeout=%ldms) ...\n", aTimeoutMS));
    713713
    714                 /* 
     714                /*
    715715                 * Wait for the HGCM low level callback until the process
    716                  * has been started (or something went wrong). This is necessary to 
     716                 * has been started (or something went wrong). This is necessary to
    717717                 * get the PID.
    718718                 */
     
    757757                else /* If callback not called within time ... well, that's a timeout! */
    758758                    vrc = VERR_TIMEOUT;
    759                
     759
    760760                /*
    761761                 * Do *not* remove the callback yet - we might wait with the IProgress object on something
    762                  * else (like end of process) ... 
     762                 * else (like end of process) ...
    763763                 */
    764764                if (RT_FAILURE(vrc))
     
    766766                    if (vrc == VERR_FILE_NOT_FOUND) /* This is the most likely error. */
    767767                    {
    768                         rc = setError(VBOX_E_IPRT_ERROR, 
     768                        rc = setError(VBOX_E_IPRT_ERROR,
    769769                                      tr("The file '%s' was not found on guest"), Utf8Command.raw());
    770770                    }
    771771                    else if (vrc == VERR_BAD_EXE_FORMAT)
    772772                    {
    773                         rc = setError(VBOX_E_IPRT_ERROR, 
     773                        rc = setError(VBOX_E_IPRT_ERROR,
    774774                                      tr("The file '%s' is not an executable format on guest"), Utf8Command.raw());
    775775                    }
    776776                    else if (vrc == VERR_LOGON_FAILURE)
    777777                    {
    778                         rc = setError(VBOX_E_IPRT_ERROR, 
     778                        rc = setError(VBOX_E_IPRT_ERROR,
    779779                                      tr("The specified user '%s' was not able to logon on guest"), Utf8UserName.raw());
    780780                    }
    781781                    else if (vrc == VERR_TIMEOUT)
    782782                    {
    783                         rc = setError(VBOX_E_IPRT_ERROR, 
     783                        rc = setError(VBOX_E_IPRT_ERROR,
    784784                                      tr("The guest did not respond within time (%ums)"), aTimeoutMS);
    785785                    }
  • trunk/src/VBox/Main/include/GuestImpl.h

    r28358 r28434  
    167167    /** General extension callback for guest control. */
    168168    HGCMSVCEXTHANDLE  mhExtCtrl;
    169        
     169
    170170    volatile uint32_t mNextContextID;
    171171    CallbackList mCallbackList;
  • trunk/src/VBox/Main/xml/Settings.cpp

    r28406 r28434  
    33953395                break;
    33963396            }
    3397         } 
     3397        }
    33983398        else
    33993399        {
     
    35773577            xml::ElementNode *pelmNAT;
    35783578            pelmNAT = elmParent.createChild("NAT");
    3579            
     3579
    35803580            if (nic.nat.strBindIP.length())
    35813581                pelmNAT->setAttribute("hostip", nic.nat.strBindIP);
     
    36263626            }
    36273627        break;
    3628    
     3628
    36293629        case NetworkAttachmentType_Bridged:
    36303630            elmParent.createChild("BridgedInterface")->setAttribute("name", nic.strName);
    36313631        break;
    3632    
     3632
    36333633        case NetworkAttachmentType_Internal:
    36343634            elmParent.createChild("InternalNetwork")->setAttribute("name", nic.strName);
    36353635        break;
    3636    
     3636
    36373637        case NetworkAttachmentType_HostOnly:
    36383638            elmParent.createChild("HostOnlyInterface")->setAttribute("name", nic.strName);
    36393639        break;
    3640    
     3640
    36413641        default: /*case NetworkAttachmentType_Null:*/
    36423642        break;
  • trunk/src/VBox/Runtime/r3/alloc-ef.cpp

    r28326 r28434  
    734734}
    735735
    736 
  • trunk/src/VBox/VMM/GMM.cpp

    r28422 r28434  
    359359 * @see GMMR0RegisterSharedModule
    360360 */
    361 GMMR3DECL(int) GMMR3RegisterSharedModule(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, 
     361GMMR3DECL(int) GMMR3RegisterSharedModule(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,
    362362                                         unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions)
    363363{
     
    400400    Req.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC;
    401401    Req.Hdr.cbReq = sizeof(Req);
    402    
     402
    403403    Req.GCBaseAddr    = GCBaseAddr;
    404404    Req.cbModule      = cbModule;
  • trunk/src/VBox/VMM/PGMSharedPage.cpp

    r28422 r28434  
    4949 * @param   pRegions            Shared region(s)
    5050 */
    51 VMMR3DECL(int) PGMR3SharedModuleRegister(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, 
     51VMMR3DECL(int) PGMR3SharedModuleRegister(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,
    5252                                         unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions)
    5353{
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r28423 r28434  
    30143014    PGMM pGMM;
    30153015    GMM_GET_VALID_INSTANCE(pGMM, VERR_INTERNAL_ERROR);
    3016     pReq->cAllocPages     = pGMM->cAllocatedPages; 
    3017     pReq->cFreePages      = (pGMM->cChunks << (GMM_CHUNK_SHIFT- PAGE_SHIFT)) - pGMM->cAllocatedPages; 
    3018     pReq->cBalloonedPages = pGMM->cBalloonedPages; 
     3016    pReq->cAllocPages     = pGMM->cAllocatedPages;
     3017    pReq->cFreePages      = (pGMM->cChunks << (GMM_CHUNK_SHIFT- PAGE_SHIFT)) - pGMM->cAllocatedPages;
     3018    pReq->cBalloonedPages = pGMM->cBalloonedPages;
    30193019    GMM_CHECK_SANITY_UPON_LEAVING(pGMM);
    30203020
     
    33283328 * @param   pRegions            Shared region(s)
    33293329 */
    3330 GMMR0DECL(int) GMMR0RegisterSharedModule(PVM pVM, VMCPUID idCpu, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, 
     3330GMMR0DECL(int) GMMR0RegisterSharedModule(PVM pVM, VMCPUID idCpu, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,
    33313331                                         unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions)
    33323332{
     
    33503350    AssertPtrReturn(pVM, VERR_INVALID_POINTER);
    33513351    AssertPtrReturn(pReq, VERR_INVALID_POINTER);
    3352     AssertMsgReturn(pReq->Hdr.cbReq >= sizeof(*pReq) && pReq->Hdr.cbReq == (unsigned)RT_OFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);
     3352    AssertMsgReturn(pReq->Hdr.cbReq >= sizeof(*pReq) && pReq->Hdr.cbReq == RT_UOFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER);
    33533353
    33543354    return GMMR0RegisterSharedModule(pVM, idCpu, pReq->szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions);
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r28285 r28434  
    11541154    rc = HWACCMR0Globals.pfnLeaveSession(pVM, pVCpu, pCtx);
    11551155
    1156     /* We don't pass on invlpg information to the recompiler for nested paging guests, so we must make sure the recompiler flushes its TLB 
     1156    /* We don't pass on invlpg information to the recompiler for nested paging guests, so we must make sure the recompiler flushes its TLB
    11571157     * the next time it executes code.
    11581158     */
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