IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 9, 2004, 4:50:16 PM (22 years ago)
Author:
desonia
Message:

Changed psList API for iterators, etc.

File:
1 edited

Legend:

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

    r2273 r2681  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-11-04 01:05:00 $
     9 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-12-10 02:50:15 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7676
    7777        // search dynamic list of error descriptions before giving up.
    78         desc = (psErrorDescription*)psListGet(dynamicErrorCodes,PS_LIST_HEAD);
    79         while (desc != NULL) {
     78        psListIterator* iter = psListIteratorAlloc(dynamicErrorCodes,PS_LIST_HEAD);
     79        while ((desc = (psErrorDescription*)psListGetNext(iter)) != NULL) {
    8080            if (desc->code == code) {
    8181                return desc;
    8282            }
    83             desc = (psErrorDescription*)psListGetNext(dynamicErrorCodes);
    8483        }
    8584    }
     
    178177    }
    179178
    180     return psListRemove(dynamicErrorCodes,PS_LIST_UNKNOWN,(psPtr)desc);
     179    return psListRemoveData(dynamicErrorCodes,(psPtr)desc);
    181180}
Note: See TracChangeset for help on using the changeset viewer.