Import on vendor branch two files that have been tweaked to unbreak
the build. The openbsm folks are free to fix it in any other way they see fit once they resurface. Basically, make everything always be const char **, even though const char ** usually should be 'const char * const *' in most cases. This makes the three different definitions consistant and allows world to build.
This commit is contained in:
parent
22ccb20de4
commit
58178f6693
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/openbsm/dist/; revision=161701
@ -322,8 +322,8 @@ token_t *au_to_subject64_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid,
|
|||||||
token_t *au_to_exec_args(char *args, int argc);
|
token_t *au_to_exec_args(char *args, int argc);
|
||||||
token_t *au_to_exec_env(char *envs, int envc);
|
token_t *au_to_exec_env(char *envs, int envc);
|
||||||
#else
|
#else
|
||||||
token_t *au_to_exec_args(char **argv);
|
token_t *au_to_exec_args(const char **argv);
|
||||||
token_t *au_to_exec_env(char **envp);
|
token_t *au_to_exec_env(const char **envp);
|
||||||
#endif
|
#endif
|
||||||
token_t *au_to_text(char *text);
|
token_t *au_to_text(char *text);
|
||||||
token_t *au_to_kevent(struct kevent *kev);
|
token_t *au_to_kevent(struct kevent *kev);
|
||||||
|
@ -1055,7 +1055,7 @@ au_to_me(void)
|
|||||||
* text count null-terminated strings
|
* text count null-terminated strings
|
||||||
*/
|
*/
|
||||||
token_t *
|
token_t *
|
||||||
au_to_exec_args(char **argv)
|
au_to_exec_args(const char **argv)
|
||||||
{
|
{
|
||||||
token_t *t;
|
token_t *t;
|
||||||
u_char *dptr = NULL;
|
u_char *dptr = NULL;
|
||||||
@ -1096,7 +1096,7 @@ au_to_exec_args(char **argv)
|
|||||||
* text count null-terminated strings
|
* text count null-terminated strings
|
||||||
*/
|
*/
|
||||||
token_t *
|
token_t *
|
||||||
au_to_exec_env(char **envp)
|
au_to_exec_env(const char **envp)
|
||||||
{
|
{
|
||||||
token_t *t;
|
token_t *t;
|
||||||
u_char *dptr = NULL;
|
u_char *dptr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user