IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.c

    r1905 r2204  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *   
    12  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-09-27 20:38:02 $
     12 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-10-27 00:57:31 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626#define MAX_ERROR_STACK_SIZE 64
    2727static psErr* errorStack[MAX_ERROR_STACK_SIZE];
    28 static unsigned int errorStackSize = 0;
     28static psU32 errorStackSize = 0;
    2929pthread_mutex_t lockErrorStack = PTHREAD_MUTEX_INITIALIZER;
    3030
     
    8484{
    8585    pthread_mutex_lock(&lockErrorStack);
    86     for (int lcv=0;lcv<errorStackSize;lcv++) {
     86    for (psS32 lcv=0;lcv<errorStackSize;lcv++) {
    8787        p_psMemSetPersistent(errorStack[lcv]->msg,false);
    8888        p_psMemSetPersistent(errorStack[lcv]->name,false);
     
    9494}
    9595
    96 psErrorCode psErrorMsg(const char *name, psErrorCode code, bool new, const char* fmt, ...)
     96psErrorCode psErrorMsg(const char *name, psErrorCode code, psBool new, const char* fmt, ...)
    9797{
    9898    char errMsg[1024];
     
    131131}
    132132
    133 psErr* psErrorGet(int which)
     133psErr* psErrorGet(psS32 which)
    134134{
    135135    psErr* result;
     
    180180        vfprintf(fd,fmt,va);
    181181
    182         for (int lcv=0;lcv<errorStackSize;lcv++) {
     182        for (psS32 lcv=0;lcv<errorStackSize;lcv++) {
    183183            if(errorStack[lcv]->code >= PS_ERR_BASE) {
    184184                fprintf(fd," -> %s: %s\n     %s\n",
Note: See TracChangeset for help on using the changeset viewer.