Changeset 12332 for trunk/Ohana/src/imregister/base/ConfigInit.c
- Timestamp:
- Mar 8, 2007, 12:21:18 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/imregister/base/ConfigInit.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/imregister/base/ConfigInit.c
r6684 r12332 7 7 int i, NDB; 8 8 char *config, *file, ElixirBase[80], catdir[256]; 9 char CatdirPhotcodeFile[256]; 10 char MasterPhotcodeFile[256]; 9 11 10 12 /*** load configuration info ***/ … … 25 27 26 28 WarnConfig (config, "CATDIR", "%s", 0, catdir); 29 WarnConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile); 27 30 sprintf (ImPhotDB, "%s/Images.dat", catdir); 28 31 29 32 /* small text databases: filters, camera defs */ 30 WarnConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile);31 33 WarnConfig (config, "TEMPERATURE_LOG", "%s", 0, TempLogFile); 32 34 WarnConfig (config, "FILTER_LIST", "%s", 0, FilterList); … … 73 75 74 76 WarnConfig (config, "imstats", "%s", 0, ElixirBase); 75 sprintf (ImstatFifo, "%s. source", ElixirBase);77 sprintf (ImstatFifo, "%s.photcode", ElixirBase); 76 78 WarnConfig (config, "ptolemy", "%s", 0, ElixirBase); 77 sprintf (PtolemyFifo, "%s. source", ElixirBase);79 sprintf (PtolemyFifo, "%s.photcode", ElixirBase); 78 80 79 81 if (!ScanConfig (config, "CONNECT", "%s", 0, CONNECT)) { … … 101 103 } 102 104 105 /* XXX this does not yet write out the master photcode table */ 106 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", catdir); 107 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) { 108 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile); 109 exit (1); 110 } 111 103 112 free (config); 104 113 free (file);
Note:
See TracChangeset
for help on using the changeset viewer.
