From e718b57a2004188c9d241d365cfb4477153c8876 Mon Sep 17 00:00:00 2001 From: fvdl Date: Tue, 10 Dec 2002 20:56:30 +0000 Subject: [PATCH] Silence strict-alias warning. --- sys/dev/wscons/wsdisplay_compat_usl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/wscons/wsdisplay_compat_usl.c b/sys/dev/wscons/wsdisplay_compat_usl.c index 9fc2b45f355c..1024eda9cb55 100644 --- a/sys/dev/wscons/wsdisplay_compat_usl.c +++ b/sys/dev/wscons/wsdisplay_compat_usl.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsdisplay_compat_usl.c,v 1.19 2002/09/23 05:51:17 simonb Exp $ */ +/* $NetBSD: wsdisplay_compat_usl.c,v 1.20 2002/12/10 20:56:30 fvdl Exp $ */ /* * Copyright (c) 1998 @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wsdisplay_compat_usl.c,v 1.19 2002/09/23 05:51:17 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsdisplay_compat_usl.c,v 1.20 2002/12/10 20:56:30 fvdl Exp $"); #include "opt_compat_freebsd.h" #include "opt_compat_netbsd.h" @@ -153,11 +153,11 @@ usl_sync_check(struct usl_syncdata *sd) static struct usl_syncdata * usl_sync_get(struct wsscreen *scr) { - struct usl_syncdata *sd; + void *sd; - if (wsscreen_lookup_sync(scr, &usl_syncops, (void **)&sd)) + if (wsscreen_lookup_sync(scr, &usl_syncops, &sd)) return (0); - return (sd); + return (struct usl_syncdata *)sd; } static int