Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/distrib/utils/sysinst From trunk:



details:   https://anonhg.NetBSD.org/src/rev/3c867cd187e1
branches:  netbsd-1-4
changeset: 468037:3c867cd187e1
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun Apr 04 00:25:40 1999 +0000

description:
>From trunk:
Make sure to get the magic MBR number right (i.e. use u_int16_t).

diffstat:

 distrib/utils/sysinst/mbr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r b0a8c5d2919f -r 3c867cd187e1 distrib/utils/sysinst/mbr.c
--- a/distrib/utils/sysinst/mbr.c       Sat Apr 03 22:35:00 1999 +0000
+++ b/distrib/utils/sysinst/mbr.c       Sun Apr 04 00:25:40 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbr.c,v 1.11 1999/04/01 11:33:02 fvdl Exp $ */
+/*     $NetBSD: mbr.c,v 1.11.2.1 1999/04/04 00:25:40 fvdl Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -451,9 +451,9 @@
 valid_mbr(buf)
        char *buf;
 {
-       int magic;
+       u_int16_t magic;
 
-       magic = *((int *)&buf[MBR_MAGICOFF]);
+       magic = *((u_int16_t *)&buf[MBR_MAGICOFF]);
 
        return (le_to_native16(magic) == MBR_MAGIC);
 }



Home | Main Index | Thread Index | Old Index