- Timestamp:
- Feb 23, 2015 10:54:48 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r53062 r54378 346 346 /* Get the number of network adapters */ 347 347 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine); 348 349 348 unsigned n = parseNum(&a->argv[1][12], NetworkAdapterCount, "NIC"); 350 349 if (!n) … … 430 429 /* Get the number of network adapters */ 431 430 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine); 432 433 431 unsigned n = parseNum(&a->argv[1][8], NetworkAdapterCount, "NIC"); 434 432 if (!n) … … 477 475 /* Get the number of network adapters */ 478 476 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine); 479 ComPtr<INATEngine> engine;480 477 unsigned n = parseNum(&a->argv[1][5], NetworkAdapterCount, "NIC"); 481 478 if (!n) … … 499 496 break; 500 497 } 498 ComPtr<INATEngine> engine; 501 499 CHECK_ERROR(adapter, COMGETTER(NATEngine)(engine.asOutParam())); 502 500 if (!engine) … … 570 568 { 571 569 /* Get the number of network adapters */ 572 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);570 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine); 573 571 unsigned n = parseNum(&a->argv[1][11], NetworkAdapterCount, "NIC"); 574 572 if (!n) … … 628 626 { 629 627 /* Get the number of network adapters */ 630 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);628 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine); 631 629 unsigned n = parseNum(&a->argv[1][10], NetworkAdapterCount, "NIC"); 632 630 if (!n) … … 675 673 { 676 674 /* Get the number of network adapters */ 677 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine);675 ULONG NetworkAdapterCount = getMaxNics(a->virtualBox, sessionMachine); 678 676 unsigned n = parseNum(&a->argv[1][3], NetworkAdapterCount, "NIC"); 679 677 if (!n) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r52312 r54378 680 680 uint32_t aValue[4]; 681 681 682 for (unsigned i = 0 ; i < 4; i++)682 for (unsigned i = 0; i < 4; i++) 683 683 { 684 684 int vrc = RTGetOptFetchValue(&GetOptState, &ValueUnion, RTGETOPT_REQ_UINT32 | RTGETOPT_FLAG_HEX);
Note:
See TracChangeset
for help on using the changeset viewer.