]> git.armaanb.net Git - opendoas.git/blobdiff - env.c
timestamp: error out if fstat and lstat st_ino and st_dev are not the same
[opendoas.git] / env.c
diff --git a/env.c b/env.c
index e4e1c4317dab3a8b717e578d0802c1b912d3fb24..3e8b95d44c7c5c67096f3438278fc0fa4f26982c 100644 (file)
--- a/env.c
+++ b/env.c
@@ -70,7 +70,7 @@ freenode(struct envnode *node)
 }
 
 static struct env *
-createenv(struct rule *rule)
+createenv(const struct rule *rule)
 {
        struct env *env;
        u_int i;
@@ -187,7 +187,7 @@ fillenv(struct env *env, const char **envlist)
 }
 
 char **
-prepenv(struct rule *rule)
+prepenv(const struct rule *rule)
 {
        static const char *safeset[] = {
                "DISPLAY", "HOME", "LOGNAME", "MAIL",
@@ -195,7 +195,7 @@ prepenv(struct rule *rule)
                NULL
        };
        struct env *env;
-       
+
        env = createenv(rule);
 
        /* if we started with blank, fill some defaults then apply rules */