Revert kludge in previous.

The warning was triggered by __builtin_memcpy() on vax, and
it has been disabled in libkern.h for _STANDALONE programs.
This commit is contained in:
tsutsui 2009-03-23 13:52:32 +00:00
parent 2a6ed85992
commit 92da7d73c5
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootxx.c,v 1.34 2009/03/19 14:11:20 he Exp $ */ /* $NetBSD: bootxx.c,v 1.35 2009/03/23 13:52:32 tsutsui Exp $ */
/*- /*-
* Copyright (c) 1982, 1986 The Regents of the University of California. * Copyright (c) 1982, 1986 The Regents of the University of California.
@ -264,7 +264,6 @@ romstrategy(void *sc, int func, daddr_t dblk, size_t size, void *buf, size_t *rs
int block = dblk; int block = dblk;
int nsize = size; int nsize = size;
char *cbuf; char *cbuf;
char *nullptr = NULL;
cbuf = (char *)buf; cbuf = (char *)buf;
@ -285,7 +284,7 @@ romstrategy(void *sc, int func, daddr_t dblk, size_t size, void *buf, size_t *rs
hpread(block); hpread(block);
else else
read750(block, (int *)bootregs); read750(block, (int *)bootregs);
memcpy(cbuf, nullptr, 512); memcpy(cbuf, 0, 512);
size -= 512; size -= 512;
cbuf += 512; cbuf += 512;
block++; block++;