aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2016-11-29 10:04:21 -0800
committerMartin Braun <martin.braun@ettus.com>2016-12-01 16:28:45 -0800
commit7c932e0fbb694258d925f170e845334c22fca2f4 (patch)
tree2ec3af21009aba56cd5efdc8ddebc689c5b8ffcd /host/lib/usrp
parent7e4d00518569b859678bf68fa2ebc1624a770c1f (diff)
downloaduhd-7c932e0fbb694258d925f170e845334c22fca2f4.tar.gz
uhd-7c932e0fbb694258d925f170e845334c22fca2f4.tar.bz2
uhd-7c932e0fbb694258d925f170e845334c22fca2f4.zip
usrp: mboard_eeprom reinterpret_cast<>(0) instead of NULL
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/mboard_eeprom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/mboard_eeprom.cpp b/host/lib/usrp/mboard_eeprom.cpp
index f10e0319a..5c0014a89 100644
--- a/host/lib/usrp/mboard_eeprom.cpp
+++ b/host/lib/usrp/mboard_eeprom.cpp
@@ -564,7 +564,7 @@ template <typename T> static const byte_vector_t to_bytes(const T &item){
}
#define sizeof_member(struct_name, member_name) \
- sizeof(reinterpret_cast<struct_name*>(NULL)->member_name)
+ sizeof(reinterpret_cast<struct_name*>(0)->member_name)
static void load_e100(mboard_eeprom_t &mb_eeprom, i2c_iface &iface){
const size_t num_bytes = offsetof(e100_eeprom_map, model);