current_substring++;
/* substrings[current_substring] is NULL already */
*substring_array_ptr = substrings;
- return UDS_SUCCESS;
+ return VDO_SUCCESS;
}
/*
*(current_position - 1) = '\0';
*string_ptr = output;
- return UDS_SUCCESS;
+ return VDO_SUCCESS;
}
/**
int result;
result = split_string(spec, '=', &fields);
- if (result != UDS_SUCCESS)
+ if (result != VDO_SUCCESS)
return result;
if ((fields[0] == NULL) || (fields[1] == NULL) || (fields[2] != NULL)) {
}
result = kstrtouint(fields[1], 10, &count);
- if (result != UDS_SUCCESS) {
+ if (result) {
uds_log_error("thread config string error: integer value needed, found \"%s\"",
fields[1]);
free_string_array(fields);
unsigned int i;
result = split_string(string, ',', &specs);
- if (result != UDS_SUCCESS)
+ if (result != VDO_SUCCESS)
return result;
for (i = 0; specs[i] != NULL; i++) {
/* The remaining arguments must have integral values. */
result = kstrtouint(value, 10, &count);
- if (result != UDS_SUCCESS) {
+ if (result) {
uds_log_error("optional config string error: integer value needed, found \"%s\"",
value);
return result;
/* Add VDO errors to the set of errors registered by the indexer. */
result = vdo_register_status_codes();
- if (result != UDS_SUCCESS) {
+ if (result != VDO_SUCCESS) {
uds_log_error("vdo_register_status_codes failed %d", result);
vdo_module_destroy();
return result;