Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/stand/mkboot Don't use htobe32() for int16_t ...
details: https://anonhg.NetBSD.org/src/rev/c8d4715ae6fa
branches: trunk
changeset: 555293:c8d4715ae6fa
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Nov 13 14:07:01 2003 +0000
description:
Don't use htobe32() for int16_t values.
diffstat:
sys/arch/hp300/stand/mkboot/mkboot.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c9c9c121ebb5 -r c8d4715ae6fa sys/arch/hp300/stand/mkboot/mkboot.c
--- a/sys/arch/hp300/stand/mkboot/mkboot.c Thu Nov 13 14:06:22 2003 +0000
+++ b/sys/arch/hp300/stand/mkboot/mkboot.c Thu Nov 13 14:07:01 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkboot.c,v 1.5 2003/08/07 16:27:43 agc Exp $
+/* $NetBSD: mkboot.c,v 1.6 2003/11/13 14:07:01 tsutsui Exp $
/*
* Copyright (c) 1990, 1993
@@ -43,7 +43,7 @@
#ifdef notdef
static char sccsid[] = "@(#)mkboot.c 7.2 (Berkeley) 12/16/90";
#endif
-__RCSID("$NetBSD: mkboot.c,v 1.5 2003/08/07 16:27:43 agc Exp $");
+__RCSID("$NetBSD: mkboot.c,v 1.6 2003/11/13 14:07:01 tsutsui Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -182,7 +182,7 @@
lifd[1].dir_addr = htobe32(lifv.vol_length);
lifd[1].dir_length = htobe32(n);
bcddate(n2, lifd[1].dir_toc);
- lifd[1].dir_flag = htobe32(DIR_FLAG);
+ lifd[1].dir_flag = htobe16(DIR_FLAG);
lifd[1].dir_exec = htobe32(loadpoint);
lifv.vol_length = htobe32(be32toh(lifd[1].dir_addr) +
be32toh(lifd[1].dir_length));
@@ -198,7 +198,7 @@
lifd[2].dir_addr = htobe32(lifv.vol_length);
lifd[2].dir_length = htobe32(n);
bcddate(n3, lifd[2].dir_toc);
- lifd[2].dir_flag = htobe32(DIR_FLAG);
+ lifd[2].dir_flag = htobe16(DIR_FLAG);
lifd[2].dir_exec = htobe32(loadpoint);
lifv.vol_length = htobe32(be32toh(lifd[2].dir_addr) +
be32toh(lifd[2].dir_length));
Home |
Main Index |
Thread Index |
Old Index