=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vmstat/dkstats.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/vmstat/dkstats.c 1996/03/03 02:51:20 1.1 --- src/usr.bin/vmstat/dkstats.c 1996/05/22 11:35:42 1.2 *************** *** 1,7 **** ! /* $OpenBSD: dkstats.c,v 1.1 1996/03/03 02:51:20 tholo Exp $ */ /* ! * Copyright (c) 1996 John M. Vinopal (banshee@resort.com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without --- 1,7 ---- ! /* $NetBSD: dkstats.c,v 1.1 1996/05/10 23:19:27 thorpej Exp $ */ /* ! * Copyright (c) 1996 John M. Vinopal * All rights reserved. * * Redistribution and use in source and binary forms, with or without *************** *** 99,105 **** void dkswap __P((void)); void dkreadstats __P((void)); int dkinit __P((int)); ! static void deref_kptr __P(( void *, void *, size_t)); /* * Take the delta between the present values and the last recorded --- 99,105 ---- void dkswap __P((void)); void dkreadstats __P((void)); int dkinit __P((int)); ! static void deref_kptr __P((void *, void *, size_t)); /* * Take the delta between the present values and the last recorded *************** *** 265,271 **** if (kvm_read(kd, (u_long)kptr, (char *)ptr, len) != len) { bzero(buf, sizeof(buf)); snprintf(buf, (sizeof(buf) - 1), ! "can't dereference kptr 0x%x", (uint)kptr); KVM_ERROR(buf); } } --- 265,271 ---- if (kvm_read(kd, (u_long)kptr, (char *)ptr, len) != len) { bzero(buf, sizeof(buf)); snprintf(buf, (sizeof(buf) - 1), ! "can't dereference kptr 0x%lx", (u_long)kptr); KVM_ERROR(buf); } }