- memset(io_array, 0, sizeof(io_array));
- for (size_t i = 0; i < g_num_daemons; ++i) {
- io_array[i].d = g_daemons[i];
- io_array[i].request_type = request_type;
- io_array[i].state = CSTATE_UNCONNECTED;
+ for (size_t i = 0; i < g_num_daemons; i++) {
+ io_array[i] = (struct cconn){
+ .d = g_daemons[i],
+ .request_type = request_type,
+ .state = CSTATE_UNCONNECTED,
+ };