mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
net/devif_callback: change flags type from uint16_t to uint32_t
increase the size of the flag to prepare for precise xxx_POLL. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -247,11 +247,11 @@ errout:
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static inline uint16_t
|
||||
static inline uint32_t
|
||||
net_dataevent(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn,
|
||||
uint16_t flags)
|
||||
uint32_t flags)
|
||||
{
|
||||
uint16_t ret;
|
||||
uint32_t ret;
|
||||
uint8_t *buffer = dev->d_appdata;
|
||||
int buflen = dev->d_len;
|
||||
uint16_t recvlen;
|
||||
@@ -306,10 +306,10 @@ net_dataevent(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
uint16_t udp_callback(FAR struct net_driver_s *dev,
|
||||
FAR struct udp_conn_s *conn, uint16_t flags)
|
||||
uint32_t udp_callback(FAR struct net_driver_s *dev,
|
||||
FAR struct udp_conn_s *conn, uint32_t flags)
|
||||
{
|
||||
ninfo("flags: %04x\n", flags);
|
||||
ninfo("flags: %" PRIx32 "\n", flags);
|
||||
|
||||
/* Some sanity checking */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user