Changeset 200 in openpam for trunk/lib/pam_get_item.c


Ignore:
Timestamp:
Feb 2, 2003, 1:10:00 PM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

More debugging macros: ENTERI() (item type), ENTERN() (int),
ENTERS() (string). Rename RETURNI() to RETURNN() for consistency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_get_item.c

    r187 r200  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_get_item.c#14 $
     34 * $P4: //depot/projects/openpam/lib/pam_get_item.c#15 $
    3535 */
    3636
     
    4040
    4141#include "openpam_impl.h"
     42
     43const char *_pam_item_name[PAM_NUM_ITEMS] = {
     44        "(NO ITEM)",
     45        "PAM_SERVICE",
     46        "PAM_USER",
     47        "PAM_TTY",
     48        "PAM_RHOST",
     49        "PAM_CONV",
     50        "PAM_AUTHTOK",
     51        "PAM_OLDAUTHTOK",
     52        "PAM_RUSER",
     53        "PAM_USER_PROMPT",
     54        "PAM_REPOSITORY",
     55        "PAM_AUTHTOK_PROMPT",
     56        "PAM_OLDAUTHTOK_PROMPT"
     57};
    4258
    4359/*
     
    5470{
    5571
    56         ENTER();
     72        ENTERI(item_type);
    5773        if (pamh == NULL)
    5874                RETURNC(PAM_SYSTEM_ERR);
Note: See TracChangeset for help on using the changeset viewer.