long len = 0;
if (!path || !data || length == 0) {
- g_print("\t[__read_file] invalid data %s %p %p\n", path, data, length);
+ g_print("\t[__read_file] invalid data\n");
return FALSE;
}
size_t len = 0;
if (!path || !data || length == 0) {
- g_print("\t[__write_file] invalid data %s %p %zu\n", path, data, length);
+ g_print("\t[__write_file] invalid data\n");
return FALSE;
}
/*
* This function gets input
*/
-static gboolean _input_func(GIOChannel *channel)
+static gboolean _input_func(GIOChannel *channel, GIOCondition condition, gpointer data)
{
gchar buf[MAX_STRING_LEN];
gsize read = 0;
- guint condition = 0;
+ GIOStatus status = 0;
GError *error = NULL;
- condition = g_io_channel_read_chars(channel, buf, MAX_STRING_LEN, &read, &error);
- if (!condition) {
+ status = g_io_channel_read_chars(channel, buf, MAX_STRING_LEN, &read, &error);
+ if (!status) {
g_print("g_io_channel_read_chars failed : %s", error ? error->message : "none");
if (error) g_error_free(error);
return TRUE;