Changeset 854 in openpam


Ignore:
Timestamp:
Jan 27, 2015, 10:13:03 PM (6 years ago)
Author:
Dag-Erling Smørgrav
Message:

Silence all remaining qual-cast warnings except in the test suite.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CREDITS

    r813 r854  
    2222        Daniel Richard G. <skunk@iskunk.org>
    2323        Darren J. Moffat <darren.moffat@sun.com>
     24        Dimitry Andric <dim@freebsd.org>
    2425        Dmitry V. Levin <ldv@altlinux.org>
    2526        Don Lewis <truckman@freebsd.org>
  • trunk/configure.ac

    r853 r854  
    143143AC_ARG_ENABLE([developer-warnings],
    144144    AS_HELP_STRING([--enable-developer-warnings], [enable strict warnings (default is NO)]),
    145     [CFLAGS="${CFLAGS} -Wall -Wextra"])
     145    [CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual"])
    146146AC_ARG_ENABLE([debugging-symbols],
    147147    AS_HELP_STRING([--enable-debugging-symbols], [enable debugging symbols (default is NO)]),
  • trunk/lib/libpam/openpam_dispatch.c

    r802 r854  
    118118                            pam_sm_func_name[primitive], chain->module->path);
    119119                        r = (chain->module->func[primitive])(pamh, flags,
    120                             chain->optc, (const char **)chain->optv);
     120                            chain->optc, (const char **)(intptr_t)chain->optv);
    121121                        pamh->current = NULL;
    122122                        openpam_log(PAM_LOG_LIBDEBUG, "%s: %s(): %s",
  • trunk/modules/pam_oath/pam_oath.c

    r799 r854  
    176176        enum pam_oath_nokey nokey, badkey;
    177177        struct passwd *pwd;
    178         const char *user;
    179         char *keyfile;
     178        const char *user, *password;
     179        char *end, *keyfile;
    180180        struct oath_key *key;
    181181        unsigned long response;
    182         char *password, *end;
    183182        int pam_err, ret, window;
    184183
     
    248247        /* get user's response */
    249248        pam_err = pam_get_authtok(pamh, PAM_AUTHTOK,
    250             (const char **)&password, PAM_OATH_PROMPT);
     249            &password, PAM_OATH_PROMPT);
    251250        if (pam_err != PAM_SUCCESS) {
    252251                openpam_log(PAM_LOG_VERBOSE, "conversation failure");
  • trunk/modules/pam_unix/pam_unix.c

    r648 r854  
    7575        struct passwd *pwd;
    7676        const char *user;
    77         char *crypt_password, *password;
     77        const char *crypt_password, *password;
    7878        int pam_err, retry;
    7979
     
    9999#ifdef OPENPAM
    100100                pam_err = pam_get_authtok(pamh, PAM_AUTHTOK,
    101                     (const char **)&password, NULL);
     101                    &password, NULL);
    102102#else
    103103                resp = NULL;
Note: See TracChangeset for help on using the changeset viewer.