IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9987


Ignore:
Timestamp:
Nov 14, 2006, 3:27:55 PM (20 years ago)
Author:
Paul Price
Message:

Changing p_psGetConfigFileName to p_psTimeConfigFileName --- previous name did not follow the rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.c

    r9980 r9987  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-11-15 00:26:40 $
     12 *  @version $Revision: 1.104 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-11-15 01:27:55 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    163163
    164164// get the pslib.config filename by checking environment variable first, then original installation area.
    165 char* p_psGetConfigFileName()
    166 {
    167     char* filename = getenv("PS_CONFIG_FILE");
     165const char* p_psTimeConfigFileName()
     166{
     167    const char* filename = getenv("PS_CONFIG_FILE");
    168168
    169169    if (filename == NULL) { // environment variable not found
     
    189189
    190190    // Check if psTime tables are already loaded
    191     if(!p_psTimeInit(p_psGetConfigFileName())) {
     191    if(!p_psTimeInit(p_psTimeConfigFileName())) {
    192192        *status = PS_LOOKUP_ERROR;
    193193        return NAN;
     
    11921192
    11931193    // Check if psTime tables are loaded/loadable
    1194     if(!p_psTimeInit(p_psGetConfigFileName())) {
     1194    if(!p_psTimeInit(p_psTimeConfigFileName())) {
    11951195        psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Failed to open file %s."),
    1196                 p_psGetConfigFileName());
     1196                p_psTimeConfigFileName());
    11971197        return NAN;
    11981198    }
Note: See TracChangeset for help on using the changeset viewer.