diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-25 08:45:54 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-25 08:45:54 +0000 |
commit | 14683c70d76d0f9c521c30afa66547433f14213a (patch) | |
tree | bdc6e5eefc16c9407dcc5737ebb78c690d3b88ec /sys/arch | |
parent | 35f9002a2769cc177b5332b709c68b1ec7edb0be (diff) |
better sizeof
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/bios.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c index 6a45cbaaf45..385b1fb5175 100644 --- a/sys/arch/i386/i386/bios.c +++ b/sys/arch/i386/i386/bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bios.c,v 1.16 1997/10/25 07:01:36 niklas Exp $ */ +/* $OpenBSD: bios.c,v 1.17 1997/10/25 08:45:53 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -330,8 +330,7 @@ bios_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) return EOPNOTSUPP; if ((pdi = bios_getdiskinfo(name[1])) == NULL) return ENXIO; - return sysctl_rdstruct(oldp, oldlenp, newp, - pdi, sizeof(*bios_diskinfo)); + return sysctl_rdstruct(oldp, oldlenp, newp, pdi, sizeof(*pdi)); case BIOS_CNVMEM: return sysctl_rdint(oldp, oldlenp, newp, cnvmem); case BIOS_EXTMEM: |