@@ -318,7 +318,7 @@ static int split_string(const char *string, char separator, char ***substring_ar
318
318
current_substring ++ ;
319
319
/* substrings[current_substring] is NULL already */
320
320
* substring_array_ptr = substrings ;
321
- return UDS_SUCCESS ;
321
+ return VDO_SUCCESS ;
322
322
}
323
323
324
324
/*
@@ -356,7 +356,7 @@ static int join_strings(char **substring_array, size_t array_length, char separa
356
356
* (current_position - 1 ) = '\0' ;
357
357
358
358
* string_ptr = output ;
359
- return UDS_SUCCESS ;
359
+ return VDO_SUCCESS ;
360
360
}
361
361
362
362
/**
@@ -484,7 +484,7 @@ static int parse_one_thread_config_spec(const char *spec,
484
484
int result ;
485
485
486
486
result = split_string (spec , '=' , & fields );
487
- if (result != UDS_SUCCESS )
487
+ if (result != VDO_SUCCESS )
488
488
return result ;
489
489
490
490
if ((fields [0 ] == NULL ) || (fields [1 ] == NULL ) || (fields [2 ] != NULL )) {
@@ -495,7 +495,7 @@ static int parse_one_thread_config_spec(const char *spec,
495
495
}
496
496
497
497
result = kstrtouint (fields [1 ], 10 , & count );
498
- if (result != UDS_SUCCESS ) {
498
+ if (result ) {
499
499
uds_log_error ("thread config string error: integer value needed, found \"%s\"" ,
500
500
fields [1 ]);
501
501
free_string_array (fields );
@@ -537,7 +537,7 @@ static int parse_thread_config_string(const char *string,
537
537
unsigned int i ;
538
538
539
539
result = split_string (string , ',' , & specs );
540
- if (result != UDS_SUCCESS )
540
+ if (result != VDO_SUCCESS )
541
541
return result ;
542
542
543
543
for (i = 0 ; specs [i ] != NULL ; i ++ ) {
@@ -607,7 +607,7 @@ static int parse_one_key_value_pair(const char *key, const char *value,
607
607
608
608
/* The remaining arguments must have integral values. */
609
609
result = kstrtouint (value , 10 , & count );
610
- if (result != UDS_SUCCESS ) {
610
+ if (result ) {
611
611
uds_log_error ("optional config string error: integer value needed, found \"%s\"" ,
612
612
value );
613
613
return result ;
@@ -2913,7 +2913,7 @@ static int __init vdo_init(void)
2913
2913
2914
2914
/* Add VDO errors to the set of errors registered by the indexer. */
2915
2915
result = vdo_register_status_codes ();
2916
- if (result != UDS_SUCCESS ) {
2916
+ if (result != VDO_SUCCESS ) {
2917
2917
uds_log_error ("vdo_register_status_codes failed %d" , result );
2918
2918
vdo_module_destroy ();
2919
2919
return result ;
0 commit comments