Changeset 535 in openpam


Ignore:
Timestamp:
Mar 31, 2012, 2:55:19 PM (3 years ago)
Author:
des
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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/man/Makefile.am

    r455 r535  
    4545        openpam_restore_cred.3 \ 
    4646        openpam_set_option.3 \ 
     47        openpam_straddch.3 \ 
    4748        openpam_subst.3 \ 
    4849        openpam_ttyconv.3 \ 
  • trunk/include/security/openpam.h

    r522 r535  
    158158        size_t *_lenp) 
    159159        OPENPAM_NONNULL((1)); 
     160 
     161int 
     162openpam_straddch(char **_str, 
     163    size_t *_sizep, 
     164    size_t *_lenp, 
     165    int ch); 
    160166#endif 
    161167 
  • 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.