mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Remove the inline declarations, patch by nailbiter
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4040 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5c867d6726
commit
674eec8fd2
2 changed files with 5 additions and 31 deletions
|
|
@ -70,13 +70,7 @@ int net_ip_compare(IPADDR *ip1, IPADDR *ip2)
|
|||
}
|
||||
|
||||
|
||||
/* copy IP to sockaddr */
|
||||
#ifdef G_CAN_INLINE
|
||||
G_INLINE_FUNC
|
||||
#else
|
||||
static
|
||||
#endif
|
||||
void sin_set_ip(union sockaddr_union *so, const IPADDR *ip)
|
||||
static void sin_set_ip(union sockaddr_union *so, const IPADDR *ip)
|
||||
{
|
||||
if (ip == NULL) {
|
||||
#ifdef HAVE_IPV6
|
||||
|
|
@ -110,12 +104,7 @@ void sin_get_ip(const union sockaddr_union *so, IPADDR *ip)
|
|||
memcpy(&ip->ip, &so->sin.sin_addr, 4);
|
||||
}
|
||||
|
||||
#ifdef G_CAN_INLINE
|
||||
G_INLINE_FUNC
|
||||
#else
|
||||
static
|
||||
#endif
|
||||
void sin_set_port(union sockaddr_union *so, int port)
|
||||
static void sin_set_port(union sockaddr_union *so, int port)
|
||||
{
|
||||
#ifdef HAVE_IPV6
|
||||
if (so->sin.sin_family == AF_INET6)
|
||||
|
|
@ -125,12 +114,7 @@ void sin_set_port(union sockaddr_union *so, int port)
|
|||
so->sin.sin_port = htons((unsigned short)port);
|
||||
}
|
||||
|
||||
#ifdef G_CAN_INLINE
|
||||
G_INLINE_FUNC
|
||||
#else
|
||||
static
|
||||
#endif
|
||||
int sin_get_port(union sockaddr_union *so)
|
||||
static int sin_get_port(union sockaddr_union *so)
|
||||
{
|
||||
#ifdef HAVE_IPV6
|
||||
if (so->sin.sin_family == AF_INET6)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue