Changeset 535 in openpam for trunk/lib


Ignore:
Timestamp:
Mar 31, 2012, 2:55:19 PM (9 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix some embarassing typos introduced in the openpam_straddch() cleanup.
Move prototype from "opempam_impl.h" to <security/openpam.h>.
Generate openpam_straddch(3) man page.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_impl.h

    r528 r535  
    144144 * Internal functions
    145145 */
    146 int              openpam_straddch(char **, size_t *, size_t *, char);
    147146int              openpam_configure(pam_handle_t *, const char *);
    148147int              openpam_dispatch(pam_handle_t *, int, int);
  • trunk/lib/openpam_straddch.c

    r533 r535  
    4747
    4848int
    49 openpam_straddch(char **str, size_t *size, size_t *len, char ch)
     49openpam_straddch(char **str, size_t *size, size_t *len, int ch)
    5050{
    5151        size_t tmpsize;
     
    5454        if (*str == NULL) {
    5555                /* initial allocation */
    56                 tmpsize = MIN_STR_SIZE
     56                tmpsize = MIN_STR_SIZE;
    5757                if ((tmpstr = malloc(tmpsize)) == NULL) {
    5858                        openpam_log(PAM_LOG_ERROR, "malloc(): %m");
     
    6969                        return (-1);
    7070                }
    71                 size = tmpsize;
     71                *size = tmpsize;
    7272                *str = tmpstr;
    7373        }
Note: See TracChangeset for help on using the changeset viewer.