summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-01-14 21:32:41 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-01-14 21:32:41 +0000
commit6e7bf194bf26caf86b00e74ae79eefc474918f89 (patch)
treef263fb667b60427c343904fe87e37e91d2a58a54
parent6f37fc1061a0e0a1258a76f7787f1f5afa71fb0c (diff)
Give UDF a chance of working on big-endian architectures, okay miod@
-rw-r--r--sys/isofs/udf/udf_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c
index 7b91e887700..bd3c662b9e9 100644
--- a/sys/isofs/udf/udf_vfsops.c
+++ b/sys/isofs/udf/udf_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vfsops.c,v 1.4 2006/01/14 19:04:17 miod Exp $ */
+/* $OpenBSD: udf_vfsops.c,v 1.5 2006/01/14 21:32:40 pedro Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -226,7 +226,7 @@ udf_checktag(struct desc_tag *tag, uint16_t id)
itag = (uint8_t *)tag;
- if (tag->id != id)
+ if (letoh16(tag->id) != id)
return (EINVAL);
for (i = 0; i < 15; i++)