IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2004, 4:36:53 AM (22 years ago)
Author:
rhl
Message:

Fixed calls to psError

File:
1 edited

Legend:

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

    r267 r390  
    187187       
    188188        if (which < 0 || which >= list->n) { // out of bounds
    189             psError(__func__, "Index %d is not in range [0..%d] for list 0x%x", which, list->n, list);
     189            psError(__func__, PS_ERR_BAD_INDEX, 1, "Index %d is not in range [0..%d] for list 0x%x", which, list->n, list);
    190190            return NULL;
    191191        }
     
    281281{
    282282    if (where != PS_DLIST_HEAD && where != PS_DLIST_TAIL) {
    283         psError(__func__, "Invalid where argument: %d; assuming PS_DLIST_HEAD", where);
     283        psError(__func__, PS_ERR_UNKNOWN, 1, "Invalid where argument: %d; assuming PS_DLIST_HEAD", where);
    284284        where = PS_DLIST_HEAD;
    285285    }
Note: See TracChangeset for help on using the changeset viewer.