Silence strict-alias warning.
This commit is contained in:
parent
c4045d2838
commit
e718b57a20
|
@ -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
|
* Copyright (c) 1998
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__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_freebsd.h"
|
||||||
#include "opt_compat_netbsd.h"
|
#include "opt_compat_netbsd.h"
|
||||||
|
@ -153,11 +153,11 @@ usl_sync_check(struct usl_syncdata *sd)
|
||||||
static struct usl_syncdata *
|
static struct usl_syncdata *
|
||||||
usl_sync_get(struct wsscreen *scr)
|
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 (0);
|
||||||
return (sd);
|
return (struct usl_syncdata *)sd;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue