diff options
author | 2016-09-19 09:14:38 +0000 | |
---|---|---|
committer | 2016-09-19 09:14:38 +0000 | |
commit | 16ee3ca85a61451258ae5655585dfb5bd71dc123 (patch) | |
tree | 8ae1d9560b5306b81257ba992646bb6c53889852 /usr.sbin/switchd/proc.c | |
parent | send a nice diagnostic reason when we destroy all bfd interfaces (reboot) (diff) | |
download | wireguard-openbsd-16ee3ca85a61451258ae5655585dfb5bd71dc123.tar.xz wireguard-openbsd-16ee3ca85a61451258ae5655585dfb5bd71dc123.zip |
Fix 'const char *' qualifier removal warning by casting it out with
uintptr_t. It is safe here to pass a 'const' to exec*().
improved by and ok millert@
Diffstat (limited to 'usr.sbin/switchd/proc.c')
-rw-r--r-- | usr.sbin/switchd/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/proc.c b/usr.sbin/switchd/proc.c index 34cf1c83344..b99aadc7cc5 100644 --- a/usr.sbin/switchd/proc.c +++ b/usr.sbin/switchd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.3 2016/09/18 13:17:40 rzalamena Exp $ */ +/* $OpenBSD: proc.c,v 1.4 2016/09/19 09:14:38 rzalamena Exp $ */ /* * Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -115,7 +115,7 @@ proc_exec(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc, p = &procs[proc]; /* Update args with process title. */ - nargv[proc_i] = (char *) p->p_title; + nargv[proc_i] = (char *)(uintptr_t)p->p_title; /* Fire children processes. */ for (i = 0; i < ps->ps_instances[p->p_id]; i++) { |