Changeset 14675
- Timestamp:
- Aug 27, 2007, 11:56:17 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r14651 r14675 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.10 2$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-08-2 3 23:45:05$6 * @version $Revision: 1.103 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-08-27 21:56:17 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 544 544 char *cameraName = argv[argNum]; // symbolic name of the camera 545 545 546 // look for the CAMERAS list in config->site546 // look for the CAMERAS list in config->site 547 547 psMetadata *cameras = psMetadataLookupMetadata(&mdok, config->site, "CAMERAS"); 548 548 if (!cameras) { … … 553 553 554 554 // look for the symbolic camera name in the CAMERAS metadata 555 char *cameraFile = psMetadataLookupStr(&mdok, cameras, cameraName); // The filename556 if (!cameraFile) {555 char *cameraFile = psMetadataLookupStr(&mdok, cameras, cameraName); // The filename 556 if (!cameraFile) { 557 557 psError(PS_ERR_IO, false, "%s is not listed in the site CAMERAS list\n", cameraName); 558 558 psFree(config); … … 560 560 } 561 561 562 // load this camera's configuration informatoin562 // load this camera's configuration informatoin 563 563 if (!pmConfigFileRead(&config->camera, cameraFile, "camera")) { 564 564 psError(PM_ERR_CONFIG, false, "Problem reading %s", cameraName); … … 566 566 return NULL; 567 567 } 568 // save the name for future uses569 config->cameraName = psStringCopy (cameraName);570 568 // save the name for future uses 569 config->cameraName = psStringCopy (cameraName); 570 571 571 psArgumentRemove(argNum, argc, argv); 572 572 … … 1007 1007 config->format = format; 1008 1008 } else { 1009 psFree(format); 1009 1010 psFree(name); 1010 1011 }
Note:
See TracChangeset
for help on using the changeset viewer.
