Changeset 19 in openpam for trunk/lib/pam_start.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/pam_start.c

    r16 r19  
    6666        int r;
    6767
    68         if ((ph = calloc(1, sizeof *ph)) == NULL)
     68        if ((ph = calloc(1, sizeof(*ph))) == NULL)
    6969                return (PAM_BUF_ERR);
    7070        if ((r = pam_set_item(ph, PAM_SERVICE, service)) != PAM_SUCCESS)
     
    111111
    112112        /* fill in configuration data */
    113         if ((module = malloc(sizeof *module)) == NULL) {
     113        if ((module = malloc(sizeof(*module))) == NULL) {
    114114                openpam_log(PAM_LOG_ERROR, "malloc(): %m");
    115115                return (PAM_BUF_ERR);
Note: See TracChangeset for help on using the changeset viewer.