#ifndef _di_controller_pids_resize_
f_status_t controller_pids_resize(const f_array_length_t length, controller_pids_t * const pids) {
- const f_status_t status = f_memory_resize(pids->size, length, sizeof(controller_rule_t), (void **) & pids->array);
+ const f_status_t status = f_memory_resize(pids->size, length, sizeof(pid_t), (void **) & pids->array);
if (F_status_is_error(status)) return status;
pids->size = length;
if (processs->array[i]) {
controller_process_delete_simple(processs->array[i]);
- f_memory_delete(1, sizeof(f_array_length_t *), (void **) & processs->array[i]);
+ f_memory_delete(1, sizeof(controller_process_t *), (void **) & processs->array[i]);
}
} // for
// The lock must be initialized, but only once, so initialize immediately upon allocation.
for (; processs->size < length; ++processs->size) {
- status = f_memory_new(1, sizeof(controller_process_t), (void **) &processs->array[processs->size]);
+ status = f_memory_new(1, sizeof(controller_process_t *), (void **) &processs->array[processs->size]);
if (F_status_is_error_not(status)) {
process = processs->array[processs->size];