summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h
index 3fa42b2d..e3dde2c6 100644
--- a/src/common.h
+++ b/src/common.h
@@ -23,8 +23,6 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
-#include <sys/wait.h>
-#include <sys/utsname.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
@@ -38,10 +36,14 @@
#include <gmodule.h>
#include "irc-base/memdebug.h"
-#include "lib-config/irssi-config.h"
-#include "common-setup.h"
#include "nls.h"
+#define g_free_not_null(a) \
+ if (a) g_free(a);
+
+#define g_free_and_null(a) \
+ if (a) { g_free(a); (a) = NULL; }
+
typedef enum
{
G_INPUT_READ = 1 << 0,