Changeset 7027 for trunk/ippTools/src/pzgetexpConfig.c
- Timestamp:
- May 1, 2006, 3:05:04 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetexpConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetexpConfig.c
r6978 r7027 9 9 pxConfig *pzgetexpConfig(pxConfig *config, int argc, char **argv) { 10 10 if (!config) { 11 config = pxConfigAlloc(); 11 config = pxConfigAlloc(); 12 12 } 13 13 14 if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) { 14 config->modules = pmConfigRead(&argc, argv); 15 16 if (! config->modules) { 15 17 psError(PS_ERR_UNKNOWN, false, "Can't find site configuration!\n"); 16 18 exit(EXIT_FAILURE); … … 46 48 47 49 // define Database handle, if used 48 config->dbh = pmConfigDB(config-> site);50 config->dbh = pmConfigDB(config->modules); 49 51 if(!config->dbh) { 50 52 psError(PS_ERR_UNKNOWN, false, "Can't connect to db\n"); … … 54 56 55 57 return config; 56 } 58 }
Note:
See TracChangeset
for help on using the changeset viewer.
