The GOptionEntry options need to be of gboolean type as they are passed
as pointers. When the size of gboolean is different from the size of
bool, it will cause option variables to be overwritten by each other.
return false;
}
-int __near_log_init(const char *debug, bool detach)
+int __near_log_init(const char *debug, gboolean detach)
{
int option = LOG_NDELAY | LOG_PID;
struct near_debug_desc *desc;
static gchar *option_debug = NULL;
static gchar *option_plugin = NULL;
static gchar *option_noplugin = NULL;
-static bool option_detach = true;
-static bool option_version = false;
+static gboolean option_detach = TRUE;
+static gboolean option_version = FALSE;
static bool parse_debug(const char *key, const char *value,
gpointer user_data, GError **error)
#include <near/log.h>
-int __near_log_init(const char *debug, bool detach);
+int __near_log_init(const char *debug, gboolean detach);
void __near_log_cleanup(void);
#include <near/dbus.h>