From 4c7b07ed3fb03528d8f9b62297fd5d8df30929bf Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 4 Mar 2001 01:47:13 +0000 Subject: IPv6 fixes. Everything now keeps both v4 and v6 addresses in memory and at connect() time it's decided which one should be used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1334 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/common.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 8a638097..1f0b3a3a 100644 --- a/src/common.h +++ b/src/common.h @@ -47,10 +47,14 @@ #include "nls.h" #define g_free_not_null(a) \ - if (a) g_free(a); + G_STMT_START { \ + if (a) g_free(a); \ + } G_STMT_END #define g_free_and_null(a) \ - if (a) { g_free(a); (a) = NULL; } + G_STMT_START { \ + if (a) { g_free(a); (a) = NULL; } \ + } G_STMT_END #define G_INPUT_READ (1 << 0) #define G_INPUT_WRITE (1 << 1) -- cgit v1.2.3