aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-06-27 21:45:26 +0200
committerDuncaen <mail@duncano.de>2016-06-27 21:46:31 +0200
commit03b7619e47e684f240da58fb8ea93edccfee6c98 (patch)
tree3bcb73901411e9d051d5d1f046cea27bdc25c9b7
parent7bdae50597be8eb0920e6f5b2a61aa712f5c398d (diff)
downloadopendoas-03b7619e47e684f240da58fb8ea93edccfee6c98.tar.gz
minor tweaks
-rw-r--r--env.c2
-rw-r--r--pam.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/env.c b/env.c
index 42a0d2e..e4e1c43 100644
--- a/env.c
+++ b/env.c
@@ -82,7 +82,7 @@ createenv(struct rule *rule)
env->count = 0;
if (rule->options & KEEPENV) {
- extern const char **environ;
+ extern char **environ;
for (i = 0; environ[i] != NULL; i++) {
struct envnode *node;
diff --git a/pam.c b/pam.c
index ec89d04..af038dd 100644
--- a/pam.c
+++ b/pam.c
@@ -149,7 +149,7 @@ watchsession(pid_t child)
{
sigset_t sigs;
struct sigaction act, oldact;
- int status;
+ int status = 1;
/* block signals */
sigfillset(&sigs);