Changeset 32198 in vbox for trunk/src/VBox
- Timestamp:
- Sep 2, 2010 1:38:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r32026 r32198 896 896 bool fVerbose = false; 897 897 if ( 2 == argc 898 && ( RTStrICmp(argv[1], "-verbose") == 0899 || RTStrICmp(argv[1], "--verbose") == 0))900 {898 && ( strcmp(argv[1], "-verbose") == 0 899 || strcmp(argv[1], "--verbose") == 0) 900 ) 901 901 fVerbose = true; 902 }903 902 else if (argc != 1) 904 903 { … … 1007 1006 { 1008 1007 pszValue = argv[1]; 1009 if ( RTStrICmp(argv[2], "-flags") != 01010 && RTStrICmp(argv[2], "--flags") != 0)1008 if ( strcmp(argv[2], "-flags") != 0 1009 && strcmp(argv[2], "--flags") != 0) 1011 1010 usageOK = false; 1012 1011 pszFlags = argv[3]; … … 1062 1061 uint32_t cPatterns = 0; 1063 1062 if ( argc > 1 1064 && ( RTStrICmp(argv[0], "-patterns") == 01065 || RTStrICmp(argv[0], "--patterns") == 0))1063 && ( strcmp(argv[0], "-patterns") == 0 1064 || strcmp(argv[0], "--patterns") == 0)) 1066 1065 { 1067 1066 papszPatterns = (char const * const *)&argv[1]; … … 1136 1135 for (int i = 1; usageOK && i < argc; ++i) 1137 1136 { 1138 if ( RTStrICmp(argv[i], "-timeout") == 01139 || RTStrICmp(argv[i], "--timeout") == 0)1137 if ( strcmp(argv[i], "-timeout") == 0 1138 || strcmp(argv[i], "--timeout") == 0) 1140 1139 { 1141 1140 if ( i + 1 >= argc … … 1147 1146 ++i; 1148 1147 } 1149 else if ( RTStrICmp(argv[i], "-timestamp") == 01150 || RTStrICmp(argv[i], "--timestamp") == 0)1148 else if ( strcmp(argv[i], "-timestamp") == 0 1149 || strcmp(argv[i], "--timestamp") == 0) 1151 1150 { 1152 1151 if ( i + 1 >= argc … … 1262 1261 return 1; 1263 1262 } 1264 if (0 == RTStrICmp(argv[0], "get"))1263 if (0 == strcmp(argv[0], "get")) 1265 1264 return getGuestProperty(argc - 1, argv + 1); 1266 else if (0 == RTStrICmp(argv[0], "set"))1265 else if (0 == strcmp(argv[0], "set")) 1267 1266 return setGuestProperty(argc - 1, argv + 1); 1268 else if (0 == RTStrICmp(argv[0], "enumerate"))1267 else if (0 == strcmp(argv[0], "enumerate")) 1269 1268 return enumGuestProperty(argc - 1, argv + 1); 1270 else if (0 == RTStrICmp(argv[0], "wait"))1269 else if (0 == strcmp(argv[0], "wait")) 1271 1270 return waitGuestProperty(argc - 1, argv + 1); 1272 1271 /* else */ … … 1286 1285 if (argc == 1) 1287 1286 { 1288 if ( RTStrICmp(argv[0], "-automount") == 01289 || RTStrICmp(argv[0], "--automount") == 01287 if ( strcmp(argv[0], "-automount") == 0 1288 || strcmp(argv[0], "--automount") == 0 1290 1289 ) 1291 1290 { … … 1358 1357 return 1; 1359 1358 } 1360 if (0 == RTStrICmp(argv[0], "list"))1359 if (0 == strcmp(argv[0], "list")) 1361 1360 return listSharedFolders(argc - 1, argv + 1); 1362 1361 /* else */ … … 1418 1417 while (!done && (iArg < argc)) 1419 1418 { 1420 if ( 0 == RTStrICmp(argv[iArg], "-v") 1421 || 0 == RTStrICmp(argv[iArg], "--version") 1422 || 0 == RTStrICmp(argv[iArg], "-version") 1423 || 0 == RTStrICmp(argv[iArg], "getversion") 1419 if ( 0 == strcmp(argv[iArg], "-V") 1420 || 0 == strcmp(argv[iArg], "-v") 1421 || 0 == strcmp(argv[iArg], "--version") 1422 || 0 == strcmp(argv[iArg], "-version") 1423 || 0 == strcmp(argv[iArg], "getversion") 1424 1424 ) 1425 1425 { … … 1430 1430 done = true; 1431 1431 } 1432 else if ( 0 == RTStrICmp(argv[iArg], "-nologo")1433 || 0 == RTStrICmp(argv[iArg], "--nologo"))1432 else if ( 0 == strcmp(argv[iArg], "-nologo") 1433 || 0 == strcmp(argv[iArg], "--nologo")) 1434 1434 fShowLogo = false; 1435 else if ( 0 == RTStrICmp(argv[iArg], "-help")1436 || 0 == RTStrICmp(argv[iArg], "--help"))1435 else if ( 0 == strcmp(argv[iArg], "-help") 1436 || 0 == strcmp(argv[iArg], "--help")) 1437 1437 { 1438 1438 fOnlyInfo = true; … … 1514 1514 && (g_commandHandlers[index].command != NULL)) 1515 1515 { 1516 if (0 == RTStrICmp(argv[iArg], g_commandHandlers[index].command))1516 if (0 == strcmp(argv[iArg], g_commandHandlers[index].command)) 1517 1517 found = true; 1518 1518 else
Note:
See TracChangeset
for help on using the changeset viewer.