diff options
author | 2019-12-28 06:58:27 +0000 | |
---|---|---|
committer | 2019-12-28 06:58:27 +0000 | |
commit | 4ad79fcaa8bebbfe5b51a51b2f2e86cb1e13134c (patch) | |
tree | 37b86088cb55b89f47206020a429f61873936f82 | |
parent | regen (diff) | |
download | wireguard-openbsd-4ad79fcaa8bebbfe5b51a51b2f2e86cb1e13134c.tar.xz wireguard-openbsd-4ad79fcaa8bebbfe5b51a51b2f2e86cb1e13134c.zip |
The last argument of execl(3) should be cast explicitly.
ok kn
-rw-r--r-- | usr.sbin/ldomctl/ldomctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldomctl/ldomctl.c b/usr.sbin/ldomctl/ldomctl.c index 58e0fd86ac7..7b568018cbf 100644 --- a/usr.sbin/ldomctl/ldomctl.c +++ b/usr.sbin/ldomctl/ldomctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldomctl.c,v 1.29 2019/12/10 11:56:33 kn Exp $ */ +/* $OpenBSD: ldomctl.c,v 1.30 2019/12/28 06:58:27 tb Exp $ */ /* * Copyright (c) 2012 Mark Kettenis @@ -643,7 +643,7 @@ guest_console(int argc, char **argv) "ttyV%llu", guest->gid - 1); closefrom(STDERR_FILENO + 1); - execl(LDOMCTL_CU, LDOMCTL_CU, "-l", console_str, NULL); + execl(LDOMCTL_CU, LDOMCTL_CU, "-l", console_str, (char *)NULL); err(1, "failed to open console"); } } |