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


Ignore:
Timestamp:
Feb 2, 2002, 6:04:31 PM (19 years ago)
Author:
Dag-Erling Smørgrav
Message:

Use 'sizeof(foo)' instead of 'sizeof foo' even where it's not
required. Although style(9) doesn't say anything about it, this
seems to be the preferred form.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_ttyconv.c

    r16 r19  
    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.