diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2022-01-23 14:05:15 +0100 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2022-01-23 14:06:42 +0100 |
commit | cc8ae7f591426ed9241dd908296526849328c81d (patch) | |
tree | a3602f7bf221aa46f92695d5b8e23c7c08d80f57 | |
parent | c2113d0e20a2dd1935ba626fcc45e0ef2ef39eb4 (diff) | |
download | mod_authnz_pam-cc8ae7f591426ed9241dd908296526849328c81d.tar.gz mod_authnz_pam-cc8ae7f591426ed9241dd908296526849328c81d.tar.xz mod_authnz_pam-cc8ae7f591426ed9241dd908296526849328c81d.zip |
Catch warnings, fix the incompatible pointer type one.
-rw-r--r-- | mod_authnz_pam.c | 2 | ||||
-rw-r--r-- | mod_authnz_pam.spec | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod_authnz_pam.c b/mod_authnz_pam.c index 71db4ea..6514dd7 100644 --- a/mod_authnz_pam.c +++ b/mod_authnz_pam.c @@ -49,7 +49,7 @@ static void * create_dir_conf(apr_pool_t * pool, char * dir) { return cfg; } -static const char * set_redirect_and_status(cmd_parms * cmd, void * conf_void, char * url, char * status) { +static const char * set_redirect_and_status(cmd_parms * cmd, void * conf_void, const char * url, const char * status) { authnz_pam_config_rec * cfg = (authnz_pam_config_rec *) conf_void; if (cfg) { cfg->expired_redirect_url = apr_pstrdup(cmd->pool, url); diff --git a/mod_authnz_pam.spec b/mod_authnz_pam.spec index 0ebb20c..4e2f25f 100644 --- a/mod_authnz_pam.spec +++ b/mod_authnz_pam.spec @@ -35,7 +35,7 @@ can also be used as full Basic Authentication provider which runs the %setup -q -n %{name}-%{version} %build -%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" -lpam mod_authnz_pam.c +%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -Werror -pedantic -std=c99" -lpam mod_authnz_pam.c %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" echo > authnz_pam.confx echo "# Load the module in %{_httpd_modconfdir}/55-authnz_pam.conf" >> authnz_pam.confx |