- Timestamp:
- Feb 19, 2008, 10:09:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080219/psModules/src/config/pmConfigCommand.c
r12696 r16542 12 12 { 13 13 PS_ASSERT_PTR_NON_NULL(command, false); 14 PS_ASSERT_PTR_NON_NULL(config, false); 15 PS_ASSERT_PTR_NON_NULL(config->xxSite, false); 14 16 15 17 bool mdok; // Status of MD lookup 16 const char *dbserver = psMetadataLookupStr(&mdok, config-> site, "DBSERVER"); // Database server18 const char *dbserver = psMetadataLookupStr(&mdok, config->xxSite, "DBSERVER"); // Database server 17 19 if (!mdok || strlen(dbserver) == 0) { 18 20 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBSERVER in site configuration.\n"); 19 return NULL;21 return false; 20 22 } 21 const char *dbname = psMetadataLookupStr(&mdok, config-> site, "DBNAME"); // Database name23 const char *dbname = psMetadataLookupStr(&mdok, config->xxSite, "DBNAME"); // Database name 22 24 if (!mdok || strlen(dbname) == 0) { 23 25 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBNAME in site configuration.\n"); 24 return NULL;26 return false; 25 27 } 26 const char *dbuser = psMetadataLookupStr(&mdok, config-> site, "DBUSER"); // Database user28 const char *dbuser = psMetadataLookupStr(&mdok, config->xxSite, "DBUSER"); // Database user 27 29 if (!mdok || strlen(dbuser) == 0) { 28 30 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBUSER in site configuration.\n"); 29 return NULL;31 return false; 30 32 } 31 const char *dbpassword = psMetadataLookupStr(&mdok, config-> site, "DBPASSWORD"); // Database password33 const char *dbpassword = psMetadataLookupStr(&mdok, config->xxSite, "DBPASSWORD"); // Database password 32 34 if (!mdok || strlen(dbpassword) == 0) { 33 35 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBPASSWORD in site configuration.\n"); 34 return NULL;36 return false; 35 37 } 36 38
Note:
See TracChangeset
for help on using the changeset viewer.
