Changeset 9987
- Timestamp:
- Nov 14, 2006, 3:27:55 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psTime.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.c
r9980 r9987 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.10 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-11-15 0 0:26:40$12 * @version $Revision: 1.104 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-11-15 01:27:55 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 163 163 164 164 // get the pslib.config filename by checking environment variable first, then original installation area. 165 c har* p_psGetConfigFileName()166 { 167 c har* filename = getenv("PS_CONFIG_FILE");165 const char* p_psTimeConfigFileName() 166 { 167 const char* filename = getenv("PS_CONFIG_FILE"); 168 168 169 169 if (filename == NULL) { // environment variable not found … … 189 189 190 190 // Check if psTime tables are already loaded 191 if(!p_psTimeInit(p_ps GetConfigFileName())) {191 if(!p_psTimeInit(p_psTimeConfigFileName())) { 192 192 *status = PS_LOOKUP_ERROR; 193 193 return NAN; … … 1192 1192 1193 1193 // Check if psTime tables are loaded/loadable 1194 if(!p_psTimeInit(p_ps GetConfigFileName())) {1194 if(!p_psTimeInit(p_psTimeConfigFileName())) { 1195 1195 psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Failed to open file %s."), 1196 p_ps GetConfigFileName());1196 p_psTimeConfigFileName()); 1197 1197 return NAN; 1198 1198 }
Note:
See TracChangeset
for help on using the changeset viewer.
