Ignore:
Timestamp:
05/29/05 16:30:32 (7 years ago)
Author:
aj
Message:

add/fix/unify out of memory handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/sys-bsd.c

    r661 r677  
    160160 
    161161        if (!(cap = (ifd_usb_capture_t *) calloc(1, sizeof(*cap) + maxpacket))) { 
    162                 ct_debug("ifd_sysdep_usb_begin_capture: calloc failed"); 
    163                 return -1; 
     162                ct_error("out of memory"); 
     163                return IFD_ERROR_NO_MEMORY; 
    164164        } 
    165165        cap->type = type; 
Note: See TracChangeset for help on using the changeset viewer.