-/* $OpenBSD: doas.h,v 1.12 2016/10/05 17:40:25 tedu Exp $ */
+/* $OpenBSD: doas.h,v 1.13 2017/04/06 21:12:06 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
extern int nrules;
extern int parse_errors;
-char **prepenv(struct rule *);
+char **prepenv(const struct rule *);
#define PERMIT 1
#define DENY 2
-/* $OpenBSD: env.c,v 1.5 2016/09/15 00:58:23 deraadt Exp $ */
+/* $OpenBSD: env.c,v 1.6 2017/04/06 21:12:06 tedu Exp $ */
/*
* Copyright (c) 2016 Ted Unangst <tedu@openbsd.org>
*
}
static struct env *
-createenv(struct rule *rule)
+createenv(const struct rule *rule)
{
struct env *env;
u_int i;
}
char **
-prepenv(struct rule *rule)
+prepenv(const struct rule *rule)
{
static const char *safeset[] = {
"DISPLAY", "HOME", "LOGNAME", "MAIL",