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/tst_memory.c

    r267 r390  
    2525static void *my_MemExhaustedCB(size_t size)
    2626{
    27     psError(__func__, "Bye bye sweet world\n");
     27    psError(__func__, ENOMEM, 1, "Bye bye sweet world\n");
    2828   
    2929    return NULL;
     
    7474    str = psRealloc(str, 20);
    7575    psFree(str);
    76 #if 1
     76#if 0
    7777    /*
    7878     * An illegal double-free
     
    8181#endif
    8282
    83 #if 1
     83#if 0
    8484    /*
    8585     * Free memory not allocated with psAlloc
     
    8888#endif
    8989
    90 #if 0
     90#if 1
    9191    /*
    9292     * Ask for more memory than we can get
     
    137137     */
    138138    if(psMemCheckCorruption(1)) {
    139         psError(__func__, "Detected corrupted memory\n\n");
     139        psError(__func__, PS_ERR_MEMORY_CORRUPTION, 1, "Detected corrupted memory\n\n");
    140140    }
    141141    /*
Note: See TracChangeset for help on using the changeset viewer.