summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorChris Caputo <ccaputo@alt.net>2009-07-18 05:42:34 +0000
committerPaul Jakma <paul@quagga.net>2009-07-19 17:36:59 +0100
commit54a15182e05ca757db3bb90a4135e9f8fd3c84f2 (patch)
tree1d29ccce46cb362ae3b2b28b2a46a3dc017d5bf1 /bgpd
parent62c9f504bdd4b09df6cf677e96367f3b31ef9dea (diff)
[bgpd] Fix compiler warnings related to MD5
This patch fixes: bgp_network.c: In function 'bgp_md5_set': bgp_network.c:107: warning: cast from pointer to integer of different size bgp_network.c: In function 'bgp_socket': bgp_network.c:447: warning: cast to pointer from integer of different size
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index 99f71138..aa019be6 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -104,7 +104,7 @@ bgp_md5_set (struct peer *peer)
*/
for (ALL_LIST_ELEMENTS_RO(bm->listen_sockets, node, socket))
{
- ret = bgp_md5_set_socket ((int )socket, &peer->su, peer->password);
+ ret = bgp_md5_set_socket ((int)(long)socket, &peer->su, peer->password);
if (ret < 0)
fret = ret;
}
@@ -444,7 +444,7 @@ bgp_socket (struct bgp *bgp, unsigned short port, char *address)
continue;
}
- listnode_add (bm->listen_sockets, (void *)sock);
+ listnode_add (bm->listen_sockets, (void *)(long)sock);
thread_add_read (master, bgp_accept, bgp, sock);
}
while ((ainfo = ainfo->ai_next) != NULL);
@@ -517,7 +517,7 @@ bgp_socket (struct bgp *bgp, unsigned short port, char *address)
return ret;
}
- listnode_add (bm->listen_sockets, (void *)sock);
+ listnode_add (bm->listen_sockets, (void *)(long)sock);
thread_add_read (bm->master, bgp_accept, bgp, sock);
return sock;