summaryrefslogtreecommitdiff
path: root/usrp
diff options
context:
space:
mode:
Diffstat (limited to 'usrp')
-rw-r--r--usrp/ChangeLog5
-rw-r--r--usrp/host/lib/legacy/usrp_bytesex.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/usrp/ChangeLog b/usrp/ChangeLog
index 69da60418..4bdb7c619 100644
--- a/usrp/ChangeLog
+++ b/usrp/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-14 Greg Troxel <Greg Troxel <gdt@ir.bbn.com>>
+
+ * host/lib/legacy/usrp_bytesex.h: Fix typo in portability code.
+ Add #warning that it is non-portable.
+
2006-10-10 Greg Troxel <gdt@ir.bbn.com>
* firmware/include/Makefile.am: avoid nonportable use of $< (first
diff --git a/usrp/host/lib/legacy/usrp_bytesex.h b/usrp/host/lib/legacy/usrp_bytesex.h
index 6c4e129c9..955faf242 100644
--- a/usrp/host/lib/legacy/usrp_bytesex.h
+++ b/usrp/host/lib/legacy/usrp_bytesex.h
@@ -33,6 +33,9 @@
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#else
+
+#warning Using non-portable code (likely wrong other than ILP32).
+
static inline unsigned short int
bswap_16 (unsigned short int x)
{
@@ -40,7 +43,7 @@ bswap_16 (unsigned short int x)
}
static inline unsigned int
-bswap32 (unsigned int x)
+bswap_32 (unsigned int x)
{
return ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) \
| (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24));