svn commit: r221204 - stable/7/sys/geom/part
Gavin Atkinson
gavin at FreeBSD.org
Fri Apr 29 10:33:55 UTC 2011
Author: gavin
Date: Fri Apr 29 10:33:54 2011
New Revision: 221204
URL: http://svn.freebsd.org/changeset/base/221204
Log:
Merge r220652 from head:
Remove an incorrect be16toh() that prevented geom_part_apm from working on
little-endian machines.
Modified:
stable/7/sys/geom/part/g_part_apm.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/geom/part/g_part_apm.c
==============================================================================
--- stable/7/sys/geom/part/g_part_apm.c Fri Apr 29 10:28:55 2011 (r221203)
+++ stable/7/sys/geom/part/g_part_apm.c Fri Apr 29 10:33:54 2011 (r221204)
@@ -343,7 +343,7 @@ g_part_apm_probe(struct g_part_table *ba
buf = g_read_data(cp, 0L, pp->sectorsize, &error);
if (buf == NULL)
return (error);
- if (be16dec(buf) == be16toh(APM_DDR_SIG)) {
+ if (be16dec(buf) == APM_DDR_SIG) {
/* Normal Apple DDR */
table->ddr.ddr_sig = be16dec(buf);
table->ddr.ddr_blksize = be16dec(buf + 2);
More information about the svn-src-all
mailing list