Changeset 35 in openpam for trunk/lib/openpam_ttyconv.c


Ignore:
Timestamp:
Feb 6, 2002, 1:25:36 PM (19 years ago)
Author:
Dag-Erling Smørgrav
Message:

According to bde, it's OK to omit parentheses when taking the size
of an object rather than a type.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_ttyconv.c

    r19 r35  
    6565        if (n <= 0 || n > PAM_MAX_NUM_MSG)
    6666                return (PAM_CONV_ERR);
    67         if ((*resp = calloc(n, sizeof(**resp))) == NULL)
     67        if ((*resp = calloc(n, sizeof **resp)) == NULL)
    6868                return (PAM_BUF_ERR);
    6969        fd = fileno(stdin);
     
    9292                        fputs(msg[i]->msg, stderr);
    9393                        buf[0] = '\0';
    94                         fgets(buf, sizeof(buf), stdin);
     94                        fgets(buf, sizeof buf, stdin);
    9595                        if (msg[i]->msg_style == PAM_PROMPT_ECHO_OFF) {
    9696                                tattr.c_lflag = lflag;
Note: See TracChangeset for help on using the changeset viewer.