From 2766a6ff14eac6b03215e9c614be0b800e429ac7 Mon Sep 17 00:00:00 2001 From: dv Date: Tue, 11 May 2021 21:45:33 +0000 Subject: [PATCH] Cast printf args to remove compiler warnings. From Ashton Fagg. OK tb@. --- sbin/sysctl/sysctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 5e9e562d308..613a8a70b9c 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.255 2021/01/13 16:28:49 cheloha Exp $ */ +/* $OpenBSD: sysctl.c,v 1.256 2021/05/11 21:45:33 dv Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -832,12 +832,12 @@ parse(char *string, int flags) newval); if (len == -1) { warnx("%s: hex string %s: invalid", - string, newval); + string, (char *)newval); return; } if (len > sizeof(hex)) { warnx("%s: hex string %s: too long", - string, newval); + string, (char *)newval); return; } -- 2.20.1