Changeset 6103 in vbox
- Timestamp:
- Dec 17, 2007 12:23:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r5999 r6103 32 32 #include <VBox/com/VirtualBox.h> 33 33 34 #define CFGLDR_HAVE_COM 35 #include <VBox/cfgldr.h> 34 /// @todo later, when the settings file update funciton is reimplemented using 35 /// libxslt (search for CFGLDR to find related parts of code below) 36 // #include <VBox/settings.h> 36 37 37 38 #include <stdlib.h> … … 3265 3266 { 3266 3267 size_t cbRead = 0; 3267 size_t cbToRead = cbFile - offFile >= cbBuffer ? cbBuffer : cbFile - offFile; 3268 size_t cbToRead = cbFile - offFile >= (uint64_t) cbBuffer ? 3269 cbBuffer : (size_t) (cbFile - offFile); 3268 3270 rc = RTFileRead(File, pvBuf, cbToRead, &cbRead); 3269 3271 if (VBOX_FAILURE(rc) || !cbRead) … … 7251 7253 RTPrintf ("%s\n", filePath); 7252 7254 7255 /// @todo later, when the settings file update funciton is reimplemented using 7256 /// libxslt (search for CFGLDR to find related parts of code below). Note that 7257 /// it doesn't make sense to enable this code since CFGLDR is no more 7258 /// available. 7259 #if 0 7260 7253 7261 CFGHANDLE config = 0; 7254 7262 char *errMsg = NULL; … … 7320 7328 7321 7329 return vrc; 7330 7331 #else 7332 7333 RTPrintf ("Error converting settings file '%s': " 7334 "THE FUNCTION IS TEMPORARILY DISABLED!\n"); 7335 return 1; 7336 7337 #endif 7322 7338 } 7323 7339 … … 7406 7422 else 7407 7423 { 7408 return errorSyntax(USAGE_ SETPROPERTY, "Invalid parameter '%s'", Utf8Str(argv[i]).raw());7424 return errorSyntax(USAGE_UPDATESETTINGS, "Invalid parameter '%s'", Utf8Str(argv[i]).raw()); 7409 7425 } 7410 7426 } 7411 7427 else 7412 7428 { 7413 return errorSyntax(USAGE_ SETPROPERTY, "Invalid parameter '%s'", Utf8Str(argv[i]).raw());7429 return errorSyntax(USAGE_UPDATESETTINGS, "Invalid parameter '%s'", Utf8Str(argv[i]).raw()); 7414 7430 } 7415 7431 } … … 7419 7435 mode = nobackup ? HUSPD_ApplyNoBackup : HUSPD_Apply; 7420 7436 7437 /// @todo later, when the settings file update funciton is reimplemented using 7438 /// libxslt (search for CFGLDR to find related parts of code below). Note that 7439 /// it doesn't make sense to enable this code since CFGLDR is no more 7440 /// available. 7441 #if 0 7442 7421 7443 int vrc = CFGLDRInitialize(); 7422 7444 if (VBOX_FAILURE (vrc)) … … 7472 7494 7473 7495 return VBOX_SUCCESS (vrc) ? 0 : 1; 7496 7497 #else 7498 7499 NOREF (mode); 7500 7501 RTPrintf ("THE SETTINGS FILE UPDATE FUNCTION IS TEMPORARILY DISABLED!\n"); 7502 return 1; 7503 7504 7505 #endif 7474 7506 } 7475 7507
Note:
See TracChangeset
for help on using the changeset viewer.