Rename process_simple_wait to process_wait

Adding "simple" in the function name brings no benefit.
This commit is contained in:
Romain Vimont
2021-01-03 16:40:34 +01:00
parent cc6f5020d8
commit 821c175730
6 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ process_check_success(process_t proc, const char *name) {
return false;
}
exit_code_t exit_code;
if (!process_simple_wait(proc, &exit_code)) {
if (!process_wait(proc, &exit_code)) {
if (exit_code != NO_EXIT_CODE) {
LOGE("\"%s\" returned with value %" PRIexitcode, name, exit_code);
} else {

View File

@@ -48,7 +48,7 @@ process_terminate(process_t pid);
// wait and close the process
bool
process_simple_wait(process_t pid, exit_code_t *exit_code);
process_wait(process_t pid, exit_code_t *exit_code);
// convenience function to wait for a successful process execution
// automatically log process errors with the provided process name