Changeset 187 in openpam for trunk/lib/pam_set_item.c


Ignore:
Timestamp:
Dec 12, 2002, 5:06:29 PM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

Instrument entry and exit points.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_set_item.c

    r164 r187  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_set_item.c#15 $
     34 * $P4: //depot/projects/openpam/lib/pam_set_item.c#16 $
    3535 */
    3636
     
    5959        size_t nsize, osize;
    6060
     61        ENTER();
    6162        if (pamh == NULL)
    62                 return (PAM_SYSTEM_ERR);
    63 
     63                RETURNC(PAM_SYSTEM_ERR);
    6464        slot = &pamh->item[item_type];
    6565        switch (item_type) {
     
    8686                break;
    8787        default:
    88                 return (PAM_SYMBOL_ERR);
     88                RETURNC(PAM_SYMBOL_ERR);
    8989        }
    9090        if (*slot != NULL) {
     
    9494        if (item != NULL) {
    9595                if ((tmp = malloc(nsize)) == NULL)
    96                         return (PAM_BUF_ERR);
     96                        RETURNC(PAM_BUF_ERR);
    9797                memcpy(tmp, item, nsize);
    9898        } else {
     
    100100        }
    101101        *slot = tmp;
    102         return (PAM_SUCCESS);
     102        RETURNC(PAM_SUCCESS);
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.