From: Joerg Sonnenberger Date: Wed, 23 Mar 2005 17:22:21 +0000 (+0000) Subject: Use the correct type in va_arg call, char is promoted to int before calling X-Git-Tag: v2.0.1~8049 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/e1150d3135c5d39b7a3555636d836f42971326e9 Use the correct type in va_arg call, char is promoted to int before calling and has to be fetched as such. --- diff --git a/sys/bus/ppbus/ppb_msq.c b/sys/bus/ppbus/ppb_msq.c index bf7e73062c..e471a1b5f6 100644 --- a/sys/bus/ppbus/ppb_msq.c +++ b/sys/bus/ppbus/ppb_msq.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/dev/ppbus/ppb_msq.c,v 1.9.2.1 2000/05/24 00:20:57 n_hibma Exp $ - * $DragonFly: src/sys/bus/ppbus/ppb_msq.c,v 1.6 2005/02/17 13:59:35 joerg Exp $ + * $DragonFly: src/sys/bus/ppbus/ppb_msq.c,v 1.7 2005/03/23 17:22:21 joerg Exp $ * */ #include @@ -219,7 +219,7 @@ ppb_MS_init_msq(struct ppb_microseq *msq, int nbparam, ...) break; case MS_TYP_CHA: - msq[ins].arg[arg].i = (int)__va_arg(p_list, char); + msq[ins].arg[arg].i = (int)__va_arg(p_list, int); break; case MS_TYP_PTR: