From 9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 6 Oct 2005 19:27:43 +0000 Subject: Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/metadata.c') diff --git a/apps/metadata.c b/apps/metadata.c index 0cf0890886..86e0887231 100644 --- a/apps/metadata.c +++ b/apps/metadata.c @@ -152,7 +152,7 @@ static void convert_endian(void *data, const char *format) { long* d = (long*) data; - *d = SWAB32(*d); + *d = letoh32(*d); data = d + 1; } @@ -162,7 +162,7 @@ static void convert_endian(void *data, const char *format) { short* d = (short*) data; - *d = SWAB16(*d); + *d = letoh16(*d); data = d + 1; } -- cgit v1.2.3