Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/disklabel Make sure to initialize byteorder if native.
details: https://anonhg.NetBSD.org/src/rev/8b654b5db92e
branches: trunk
changeset: 786623:8b654b5db92e
user: matt <matt%NetBSD.org@localhost>
date: Fri May 03 21:23:36 2013 +0000
description:
Make sure to initialize byteorder if native.
diffstat:
sbin/disklabel/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9ca7c1fe4556 -r 8b654b5db92e sbin/disklabel/main.c
--- a/sbin/disklabel/main.c Fri May 03 21:13:34 2013 +0000
+++ b/sbin/disklabel/main.c Fri May 03 21:23:36 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.30 2013/05/03 16:39:00 matt Exp $ */
+/* $NetBSD: main.c,v 1.31 2013/05/03 21:23:36 matt Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#else
-__RCSID("$NetBSD: main.c,v 1.30 2013/05/03 16:39:00 matt Exp $");
+__RCSID("$NetBSD: main.c,v 1.31 2013/05/03 21:23:36 matt Exp $");
#endif
#endif /* not lint */
@@ -447,7 +447,7 @@
labelsector = native_params.labelsector = getlabelsector();
labelusesmbr = native_params.labelusesmbr = getlabelusesmbr();
maxpartitions = native_params.maxpartitions = getmaxpartitions();
- native_params.byteorder = BYTE_ORDER;
+ byteorder = native_params.byteorder = BYTE_ORDER;
#endif
if ((cp = getenv("MACHINE")) != NULL) {
Home |
Main Index |
Thread Index |
Old Index