summaryrefslogtreecommitdiff
path: root/src/sudo_edit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sudo_edit.h')
-rw-r--r--src/sudo_edit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sudo_edit.h b/src/sudo_edit.h
index 87e6e9f6a..61b02ebf8 100644
--- a/src/sudo_edit.h
+++ b/src/sudo_edit.h
@@ -48,8 +48,8 @@ bool sudo_check_temp_file(int tfd, const char *tname, uid_t uid, struct stat *sb
/* edit_open.c */
struct sudo_cred;
void switch_user(uid_t euid, gid_t egid, int ngroups, GETGROUPS_T *groups);
-int sudo_edit_open(char *path, int oflags, mode_t mode, int sflags, struct sudo_cred *user_cred, struct sudo_cred *cur_cred);
-int dir_is_writable(int dfd, struct sudo_cred *user_cred, struct sudo_cred *cur_cred);
-bool sudo_edit_parent_valid(char *path, int sflags, struct sudo_cred *user_cred, struct sudo_cred *cur_cred);
+int sudo_edit_open(char *path, int oflags, mode_t mode, int sflags, const struct sudo_cred *user_cred, const struct sudo_cred *cur_cred);
+int dir_is_writable(int dfd, const struct sudo_cred *user_cred, const struct sudo_cred *cur_cred);
+bool sudo_edit_parent_valid(char *path, int sflags, const struct sudo_cred *user_cred, const struct sudo_cred *cur_cred);
#endif /* SUDO_EDIT_H */