Module Name: src Committed By: matt Date: Fri Aug 3 07:51:22 UTC 2012
Modified Files: src/sys/compat/common: rndpseudo_50.c Log Message: Only do COMPAT_NETBSD32 stuff if _LP64 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/compat/common/rndpseudo_50.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/common/rndpseudo_50.c diff -u src/sys/compat/common/rndpseudo_50.c:1.1 src/sys/compat/common/rndpseudo_50.c:1.2 --- src/sys/compat/common/rndpseudo_50.c:1.1 Mon Dec 19 21:53:52 2011 +++ src/sys/compat/common/rndpseudo_50.c Fri Aug 3 07:51:21 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: rndpseudo_50.c,v 1.1 2011/12/19 21:53:52 apb Exp $ */ +/* $NetBSD: rndpseudo_50.c,v 1.2 2012/08/03 07:51:21 matt Exp $ */ /*- * Copyright (c) 1997-2011 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rndpseudo_50.c,v 1.1 2011/12/19 21:53:52 apb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rndpseudo_50.c,v 1.2 2012/08/03 07:51:21 matt Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -57,7 +57,7 @@ rndsource_to_rndsource50(rndsource_t *r, r50->flags = r->flags; } -#ifdef COMPAT_NETBSD32 +#if defined(COMPAT_NETBSD32) && defined(_LP64) /* * Convert from rndsource_t to rndsource50_32_t, for the results from * RNDGETNUM50_32 and RNDGETNAME50_32. @@ -110,7 +110,7 @@ compat_50_rnd_ioctl(struct file *fp, u_l break; } -#ifdef COMPAT_NETBSD32 +#if defined(COMPAT_NETBSD32) && defined(_LP64) case RNDGETSRCNUM50_32: { rndstat_t rstbuf = {.start = 0}; @@ -154,7 +154,7 @@ compat_50_rnd_ioctl(struct file *fp, u_l break; } -#ifdef COMPAT_NETBSD32 +#if defined(COMPAT_NETBSD32) && defined(_LP64) case RNDGETSRCNAME50_32: { rndstat_name_t rstnmbuf = {.name[0] = 0};