} mdg_manager_s;
#define CHECK_HANDLE_IS_VALID(handle) { \
- if (g_slist_find (handle_list, handle) == NULL) \
+ if (g_slist_find(handle_list, handle) == NULL) \
return MDG_ERROR_UNKNOWN; \
}
*data = (unsigned char *)g_try_malloc0(*data_len + 1);
g_variant_get(data_va, "a(y)", &data_iter);
- while (g_variant_iter_loop(data_iter, "(y)", &byte_data)) {
+ while (g_variant_iter_loop(data_iter, "(y)", &byte_data))
(*data)[i++] = byte_data;
- }
g_variant_iter_free(iter);
}
3 + ((n) * 2), ##args); fflush(stdout); } while (0)
#define pmsg(fmt, args...) do { \
- if (is_pid_show()) { fprintf(stdout, "(%5d) ", get_tid()); } \
+ if (is_pid_show()) \
+ fprintf(stdout, "(%5d) ", get_tid()); \
fprintf(stdout, fmt "\n", ##args); fflush(stdout); } while (0)
#define pmsgb(fmt, args...) do { \
- if (is_pid_show()) { fprintf(stdout, "(%5d) ", get_tid()); } \
+ if (is_pid_show()) \
+ fprintf(stdout, "(%5d) ", get_tid()); \
fprintf(stdout, ANSI_COLOR_LIGHTGREEN fmt \
ANSI_COLOR_NORMAL "\n", ##args); fflush(stdout); } while (0)
#define pmsgt(n, fmt, args...) do { \
- if (is_pid_show()) { fprintf(stdout, "(%5d) ", get_tid()); } \
+ if (is_pid_show()) \
+ fprintf(stdout, "(%5d) ", get_tid()); \
fprintf(stdout, "\e[%dC" fmt "\n", \
3 + ((n) * 2), ##args); fflush(stdout); } while (0)