From: dv Date: Tue, 11 May 2021 21:45:33 +0000 (+0000) Subject: Cast printf args to remove compiler warnings. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2766a6ff14eac6b03215e9c614be0b800e429ac7;p=openbsd Cast printf args to remove compiler warnings. From Ashton Fagg. OK tb@. --- 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; }