Preserve the constness of the value argument passed to env_setenv() as
it gets passed through the filter functions.
This commit is contained in:
parent
a352421215
commit
62537aaa17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121532
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user