Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use a fixed-size type, this code also exists in
details: https://anonhg.NetBSD.org/src/rev/5ab3b03158ad
branches: trunk
changeset: 358541:5ab3b03158ad
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 07 03:35:43 2018 +0000
description:
use a fixed-size type, this code also exists in
sys/dev/dkwedge/dkwedge_bsdlabel.c
diffstat:
sys/kern/subr_disk_mbr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 562c769330a1 -r 5ab3b03158ad sys/kern/subr_disk_mbr.c
--- a/sys/kern/subr_disk_mbr.c Sat Jan 06 23:44:06 2018 +0000
+++ b/sys/kern/subr_disk_mbr.c Sun Jan 07 03:35:43 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_disk_mbr.c,v 1.47 2017/02/19 07:43:42 rin Exp $ */
+/* $NetBSD: subr_disk_mbr.c,v 1.48 2018/01/07 03:35:43 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk_mbr.c,v 1.47 2017/02/19 07:43:42 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk_mbr.c,v 1.48 2018/01/07 03:35:43 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -604,7 +604,7 @@
*/
dlp = (void *)a->bp->b_data;
dlp_lim = (char *)a->bp->b_data + a->bp->b_bcount - sizeof *dlp;
- for (;; dlp = (void *)((char *)dlp + sizeof(long))) {
+ for (;; dlp = (void *)((char *)dlp + sizeof(uint32_t))) {
if ((char *)dlp > dlp_lim) {
if (a->action != WRITE_LABEL)
return SCAN_CONTINUE;
Home |
Main Index |
Thread Index |
Old Index