From b001cf0688255f9dd5e76ba1bc089b3081baa292 Mon Sep 17 00:00:00 2001 From: kn Date: Fri, 19 Aug 2022 18:56:26 +0000 Subject: [PATCH] Zap useless cast opendev(3) takes a const char * (since 2012, thanks tb), just what getinfo() provides. No amd64 object change. OK millert tb --- sbin/vnconfig/vnconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/vnconfig/vnconfig.c b/sbin/vnconfig/vnconfig.c index 6e2e49f8135..4ca1f9dbce8 100644 --- a/sbin/vnconfig/vnconfig.c +++ b/sbin/vnconfig/vnconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnconfig.c,v 1.8 2022/08/16 16:18:16 kn Exp $ */ +/* $OpenBSD: vnconfig.c,v 1.9 2022/08/19 18:56:26 kn Exp $ */ /* * Copyright (c) 1993 University of Utah. * Copyright (c) 1990, 1993 @@ -234,7 +234,7 @@ getinfo(const char *vname, int *availp) print_all = 1; } - vd = opendev((char *)vname, O_RDONLY, OPENDEV_PART, NULL); + vd = opendev(vname, O_RDONLY, OPENDEV_PART, NULL); if (vd == -1) err(1, "open: %s", vname); -- 2.20.1