Changeset 2681 for trunk/psLib/src/sysUtils/psErrorCodes.c
- Timestamp:
- Dec 9, 2004, 4:50:16 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psErrorCodes.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psErrorCodes.c
r2273 r2681 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-1 1-04 01:05:00$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-12-10 02:50:15 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 76 76 77 77 // 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) { 80 80 if (desc->code == code) { 81 81 return desc; 82 82 } 83 desc = (psErrorDescription*)psListGetNext(dynamicErrorCodes);84 83 } 85 84 } … … 178 177 } 179 178 180 return psListRemove (dynamicErrorCodes,PS_LIST_UNKNOWN,(psPtr)desc);179 return psListRemoveData(dynamicErrorCodes,(psPtr)desc); 181 180 }
Note:
See TracChangeset
for help on using the changeset viewer.
