net: socket: mgmt: use uintptr_t for the nm_pid field
This may contain a pointer so make sure it is sufficiently wide on 64-bit targets. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
1b359e6426
commit
d19a5f9119
4 changed files with 5 additions and 5 deletions
|
@ -52,7 +52,7 @@ extern "C" {
|
|||
* When used with bind(), the nm_pid field of the sockaddr_nm can be
|
||||
* filled with the calling thread' own id. The nm_pid serves here as the local
|
||||
* address of this net_mgmt socket. The application is responsible for picking
|
||||
* a unique 32-bit integer to fill in nm_pid.
|
||||
* a unique integer value to fill in nm_pid.
|
||||
*/
|
||||
struct sockaddr_nm {
|
||||
/** AF_NET_MGMT address family. */
|
||||
|
@ -64,7 +64,7 @@ struct sockaddr_nm {
|
|||
/** Thread id or similar that is used to separate the different
|
||||
* sockets. Application can decide how the pid is constructed.
|
||||
*/
|
||||
u32_t nm_pid;
|
||||
uintptr_t nm_pid;
|
||||
|
||||
/** net_mgmt mask */
|
||||
u32_t nm_mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue