diff --git a/lib/libstand/environment.c b/lib/libstand/environment.c index 1365a1c601d4..1a3cfc7e5fef 100644 --- a/lib/libstand/environment.c +++ b/lib/libstand/environment.c @@ -207,7 +207,7 @@ env_discard(struct env_var *ev) } int -env_noset(struct env_var *ev, int flags, void *value) +env_noset(struct env_var *ev, int flags, const void *value) { return(EPERM); } diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h index e08c5bb27c20..bf4ed289bba5 100644 --- a/lib/libstand/stand.h +++ b/lib/libstand/stand.h @@ -291,7 +291,8 @@ extern int pager_file(const char *fname); struct env_var; typedef char *(ev_format_t)(struct env_var *ev); -typedef int (ev_sethook_t)(struct env_var *ev, int flags, void *value); +typedef int (ev_sethook_t)(struct env_var *ev, int flags, + const void *value); typedef int (ev_unsethook_t)(struct env_var *ev); struct env_var