summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhanashri Atre <datre@qca.qualcomm.com>2014-07-03 13:43:21 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-07-03 18:41:45 -0700
commite67cc956581044042d3530d3fb38ec04fdf5a1e4 (patch)
tree4a797b4507802fee6eed5be7872ae697e2a40f45
parentc19d4de8e5bdeec950fe6452b70482fee7f4eede (diff)
wlan: qca-cld: Compilation Error for 64 bit
Fixing compilation error seen on 64 bit platform Change-Id: I8114de6b3d7d63e8db7a853ceae3d028b1d9aa6d CRs-Fixed: 689337
-rw-r--r--CORE/SERVICES/COMMON/adf/adf_os_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SERVICES/COMMON/adf/adf_os_types.h b/CORE/SERVICES/COMMON/adf/adf_os_types.h
index 61d4e5aed87e..c6b2ba43a225 100644
--- a/CORE/SERVICES/COMMON/adf/adf_os_types.h
+++ b/CORE/SERVICES/COMMON/adf/adf_os_types.h
@@ -328,6 +328,6 @@ typedef struct _adf_drv_info{
unsigned char *ifname;
}adf_drv_info_t;
-#define adf_os_offsetof(type, field) ((unsigned int)(&((type *)0)->field))
+#define adf_os_offsetof(type, field) offsetof(type, field)
#endif