diff options
author | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-19 09:14:39 +0000 |
---|---|---|
committer | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-19 09:14:39 +0000 |
commit | b34badf3fe036312f8a05316172ad91cf3a44a6c (patch) | |
tree | fd8a9bae879389b208cb0cdab0cf1d47873c848d /usr.sbin | |
parent | ca0b13fc8399bb7a411a5ea61736ece4c4aae048 (diff) |
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')
-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++) { |