summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod_authnz_pam.c2
-rw-r--r--mod_authnz_pam.spec2
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