use macro for inserting errors

pull/23/head
Gerard Wagener 2018-11-27 17:27:52 +01:00
parent e1ba7834c4
commit 233ac80f0f
1 changed files with 1 additions and 5 deletions

View File

@ -26,11 +26,7 @@ int d4_load_config(d4_t* d4)
read(fd, d4->conf[i], SZCONFVALUE); read(fd, d4->conf[i], SZCONFVALUE);
} else { } else {
d4->errno_copy = errno; d4->errno_copy = errno;
if ( d4->err_idx < SZERRVALUE ) { INSERT_ERROR("Failed to load %s", d4params[i]);
snprintf(d4->errors[d4->err_idx], SZERRVALUE,
"Failed to load %s", d4params[i]);
d4->err_idx++;
}
} }
} }
} }