VirtualBox

Changeset 24998 in vbox


Ignore:
Timestamp:
Nov 26, 2009 1:22:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55304
Message:

VBoxManage: fix shadow warnings

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r23973 r24998  
    443443    if (argc >= 3)
    444444    {
    445         int rc = RTStrToInt64Ex(argv[2], NULL, 0, &offDelta);
    446         if (RT_FAILURE(rc))
     445        int irc = RTStrToInt64Ex(argv[2], NULL, 0, &offDelta);
     446        if (RT_FAILURE(irc))
    447447            return errorArgument(argv[0], "Failed to read delta '%s', rc=%Rrc\n", argv[2], rc);
    448448    }
     
    455455    if (argc >= 5)
    456456    {
    457         int rc = RTStrToUInt64Ex(argv[4], NULL, 0, &ModuleAddress);
    458         if (RT_FAILURE(rc))
     457        int irc = RTStrToUInt64Ex(argv[4], NULL, 0, &ModuleAddress);
     458        if (RT_FAILURE(irc))
    459459            return errorArgument(argv[0], "Failed to read module address '%s', rc=%Rrc\n", argv[4], rc);
    460460    }
     
    463463    if (argc >= 6)
    464464    {
    465         int rc = RTStrToUInt64Ex(argv[5], NULL, 0, &ModuleSize);
    466         if (RT_FAILURE(rc))
     465        int irc = RTStrToUInt64Ex(argv[5], NULL, 0, &ModuleSize);
     466        if (RT_FAILURE(irc))
    467467            return errorArgument(argv[0], "Failed to read module size '%s', rc=%Rrc\n", argv[5], rc);
    468468    }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r24969 r24998  
    194194                {
    195195                    uint8_t u8Scancode;
    196                     int rc = RTStrToUInt8Ex(a->argv[i], NULL, 16, &u8Scancode);
    197                     if (RT_FAILURE (rc))
     196                    int irc = RTStrToUInt8Ex(a->argv[i], NULL, 16, &u8Scancode);
     197                    if (RT_FAILURE (irc))
    198198                    {
    199199                        RTPrintf("Error: converting '%s' returned %Rrc!\n", a->argv[i], rc);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r24884 r24998  
    460460            {
    461461                char szFilenameAbs[RTPATH_MAX] = "";
    462                 int vrc = RTPathAbs(FilenameOrUuid, szFilenameAbs, sizeof(szFilenameAbs));
    463                 if (RT_FAILURE(vrc))
     462                int irc = RTPathAbs(FilenameOrUuid, szFilenameAbs, sizeof(szFilenameAbs));
     463                if (RT_FAILURE(irc))
    464464                {
    465465                    RTPrintf("Cannot convert filename \"%s\" to absolute path\n", FilenameOrUuid);
     
    620620        {
    621621            char szFilenameAbs[RTPATH_MAX] = "";
    622             int vrc = RTPathAbs(Utf8Str(src).c_str(), szFilenameAbs, sizeof(szFilenameAbs));
    623             if (RT_FAILURE(vrc))
     622            int irc = RTPathAbs(Utf8Str(src).c_str(), szFilenameAbs, sizeof(szFilenameAbs));
     623            if (RT_FAILURE(irc))
    624624            {
    625625                RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Utf8Str(src).raw());
     
    654654                {
    655655                    char szFilenameAbs[RTPATH_MAX] = "";
    656                     int vrc = RTPathAbs(Utf8Str(dst).c_str(), szFilenameAbs, sizeof(szFilenameAbs));
    657                     if (RT_FAILURE(vrc))
     656                    int irc = RTPathAbs(Utf8Str(dst).c_str(), szFilenameAbs, sizeof(szFilenameAbs));
     657                    if (RT_FAILURE(irc))
    658658                    {
    659659                        RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Utf8Str(dst).raw());
     
    14051405        {
    14061406            char szFilenameAbs[RTPATH_MAX] = "";
    1407             int vrc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));
    1408             if (RT_FAILURE(vrc))
     1407            int irc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));
     1408            if (RT_FAILURE(irc))
    14091409            {
    14101410                RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Filename);
     
    14341434        {
    14351435            char szFilenameAbs[RTPATH_MAX] = "";
    1436             int vrc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));
    1437             if (RT_FAILURE(vrc))
     1436            int irc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));
     1437            if (RT_FAILURE(irc))
    14381438            {
    14391439                RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Filename);
     
    14551455        {
    14561456            char szFilenameAbs[RTPATH_MAX] = "";
    1457             int vrc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));
    1458             if (RT_FAILURE(vrc))
     1457            int irc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));
     1458            if (RT_FAILURE(irc))
    14591459            {
    14601460                RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Filename);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp

    r21612 r24998  
    107107};
    108108
    109 int handleImportAppliance(HandlerArg *a)
     109int handleImportAppliance(HandlerArg *arg)
    110110{
    111111    HRESULT rc = S_OK;
     
    125125    RTGETOPTSTATE GetState;
    126126    // start at 0 because main() has hacked both the argc and argv given to us
    127     RTGetOptInit(&GetState, a->argc, a->argv, g_aImportApplianceOptions, RT_ELEMENTS(g_aImportApplianceOptions), 0, 0 /* fFlags */);
     127    RTGetOptInit(&GetState, arg->argc, arg->argv, g_aImportApplianceOptions, RT_ELEMENTS(g_aImportApplianceOptions), 0, 0 /* fFlags */);
    128128    while ((c = RTGetOpt(&GetState, &ValueUnion)))
    129129    {
     
    231231    {
    232232        ComPtr<IAppliance> pAppliance;
    233         CHECK_ERROR_BREAK(a->virtualBox, CreateAppliance(pAppliance.asOutParam()));
     233        CHECK_ERROR_BREAK(arg->virtualBox, CreateAppliance(pAppliance.asOutParam()));
    234234
    235235        char *pszAbsFilePath;
     
    879879                        void *pvFile;
    880880                        size_t cbFile;
    881                         int rc = RTFileReadAll(itD->second.c_str(), &pvFile, &cbFile);
    882                         if (RT_SUCCESS(rc))
     881                        int irc = RTFileReadAll(itD->second.c_str(), &pvFile, &cbFile);
     882                        if (RT_SUCCESS(irc))
    883883                        {
    884                             Bstr strContent((char*)pvFile);
    885                             pVSD->AddDescription (VirtualSystemDescriptionType_License, strContent, strContent);
     884                            Bstr bstrContent((char*)pvFile);
     885                            pVSD->AddDescription(VirtualSystemDescriptionType_License, bstrContent, bstrContent);
    886886                            RTFileReadAllFree(pvFile, cbFile);
    887887                        }
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