Use const pointers where possible in the display code.

This commit is contained in:
Todd C. Miller
2023-08-09 11:19:17 -06:00
parent 6842dd1bfd
commit 0f2e5dae90
7 changed files with 80 additions and 76 deletions

View File

@@ -326,9 +326,10 @@ done:
}
static void
cb_lookup(struct sudoers_parse_tree *parse_tree, struct userspec *us,
int user_match, struct privilege *priv, int host_match, struct cmndspec *cs,
int date_match, int runas_match, int cmnd_match, void *closure)
cb_lookup(const struct sudoers_parse_tree *parse_tree,
const struct userspec *us, int user_match, const struct privilege *priv,
int host_match, const struct cmndspec *cs, int date_match, int runas_match,
int cmnd_match, void *closure)
{
struct sudoers_match_info *info = closure;