mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 09:42:35 +00:00
ble_mesh: stack: fix the structure init order to meet C++ requirements
This commit is contained in:
@@ -840,22 +840,22 @@ struct net_buf_pool {
|
||||
#if CONFIG_BLE_MESH_NET_BUF_POOL_USAGE
|
||||
#define NET_BUF_POOL_INITIALIZER(_pool, _alloc, _bufs, _count, _destroy) \
|
||||
{ \
|
||||
.alloc = _alloc, \
|
||||
.__bufs = (struct net_buf *)_bufs, \
|
||||
.buf_count = _count, \
|
||||
.uninit_count = _count, \
|
||||
.avail_count = _count, \
|
||||
.destroy = _destroy, \
|
||||
.name = STRINGIFY(_pool), \
|
||||
.destroy = _destroy, \
|
||||
.alloc = _alloc, \
|
||||
.__bufs = (struct net_buf *)_bufs, \
|
||||
}
|
||||
#else
|
||||
#define NET_BUF_POOL_INITIALIZER(_pool, _alloc, _bufs, _count, _destroy) \
|
||||
{ \
|
||||
.alloc = _alloc, \
|
||||
.__bufs = (struct net_buf *)_bufs, \
|
||||
.buf_count = _count, \
|
||||
.uninit_count = _count, \
|
||||
.destroy = _destroy, \
|
||||
.alloc = _alloc, \
|
||||
.__bufs = (struct net_buf *)_bufs, \
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_NET_BUF_POOL_USAGE */
|
||||
|
||||
|
Reference in New Issue
Block a user