Preserve the constness of the value argument passed to env_setenv() as

it gets passed through the filter functions.
This commit is contained in:
Peter Wemm 2003-10-26 04:04:12 +00:00
parent a352421215
commit 62537aaa17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121532
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -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