IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 17, 2004, 7:53:16 AM (22 years ago)
Author:
rhl
Message:

Updated to match APIs in include/*.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/error.c

    r567 r707  
    9999       
    100100        va_start(ap, fmt);
    101         p_psVLogMsg(name, PS_LOG_ERROR, fmt, ap);
     101        p_psLogVMsg(name, PS_LOG_ERROR, fmt, ap);
    102102        va_end(ap);
    103103    }
     
    119119 * Return the last error; if there is none, return one with code "PS_ERR_NONE"
    120120 */
    121 const psErr *psLastError(void)
    122 {
    123     return psGetError(0);
     121const psErr *psErrorLast(void)
     122{
     123    return psErrorGet(0);
    124124}
    125125
     
    127127 * Return specified error (0: last error, 1: previous error, and so on)
    128128 */
    129 const psErr *psGetError(int which)
     129const psErr *psErrorGet(int which)
    130130{
    131131    static psErr noError = { "", PS_ERR_NONE, "" };
     
    169169        }
    170170
    171         errorStringList[errors[i].code] = errors[i].descrip;
     171        errorStringList[errors[i].code] = (char *)errors[i].descrip;
    172172    }
    173173}
     
    210210    }
    211211
    212     psVErrorStackPrint(fd, fmt, ap);
     212    psErrorVStackPrint(fd, fmt, ap);
    213213
    214214    if (fmt != NULL) {
     
    217217}
    218218
    219 void psVErrorStackPrint(FILE *fd,       // write to this file descriptor
     219void psErrorVStackPrint(FILE *fd,       // write to this file descriptor
    220220                        const char *fmt,// format for any header information; may be NULL
    221221                        va_list ap)     // arguments for format
Note: See TracChangeset for help on using the changeset viewer.