aboutsummaryrefslogtreecommitdiff
path: root/src/core/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/socket.c')
-rw-r--r--src/core/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index 79c1602b..765a6d0c 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -31,7 +31,7 @@ struct nni_socket {
nni_cv s_cv;
nni_cv s_close_cv;
- uint32_t s_id;
+ uint64_t s_id;
uint32_t s_flags;
unsigned s_refcnt; // protected by global lock
void * s_data; // Protocol private
@@ -81,7 +81,7 @@ nni_free_opt(nni_sockopt *opt)
uint32_t
nni_sock_id(nni_sock *s)
{
- return (s->s_id);
+ return ((uint32_t) s->s_id);
}
// nni_sock_sendq and nni_sock_recvq are called by the protocol to obtain