Skip to content

Commit

Permalink
tidying up legacy headers
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 7, 2024
1 parent 33a3056 commit a30d89f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/client/udaGetAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int idamGetAPIWithHost(const char* data_object, const char* data_source, const c
static bool reopen_logs = true;

if (udaStartup(0, client_flags, &reopen_logs) != 0) {
unlockUdaThread();
udaUnlockThread();
return PROBLEM_OPENING_LOGS;
}

Expand Down Expand Up @@ -217,7 +217,7 @@ int idamGetAPIWithHost(const char* data_object, const char* data_source, const c
UDA_LOG(UDA_LOG_ERROR, "Error identifying the Data Source [%s]\n", data_source);
addIdamError(UDA_CODE_ERROR_TYPE, __func__, 999, "Error identifying the Data Source");
}
unlockUdaThread();
udaUnlockThread();
return -err;
}

Expand Down Expand Up @@ -246,7 +246,7 @@ int idamGetAPIWithHost(const char* data_object, const char* data_source, const c

freeClientRequestBlock(&request_block);
// Unlock the thread
unlockUdaThread();
udaUnlockThread();
return handle;
}

Expand Down Expand Up @@ -287,7 +287,7 @@ int idamGetBatchAPIWithHost(const char** signals, const char** sources, int coun
static bool reopen_logs = true;

if (udaStartup(0, client_flags, &reopen_logs) != 0) {
unlockUdaThread();
udaUnlockThread();
return PROBLEM_OPENING_LOGS;
}

Expand Down Expand Up @@ -328,7 +328,7 @@ int idamGetBatchAPIWithHost(const char** signals, const char** sources, int coun
if (udaNumErrors() == 0) {
addIdamError(UDA_CODE_ERROR_TYPE, __func__, 999, "Error identifying the Data Source");
}
unlockUdaThread();
udaUnlockThread();
return -err;
}

Expand All @@ -353,6 +353,6 @@ int idamGetBatchAPIWithHost(const char** signals, const char** sources, int coun
#endif

// Unlock the thread
unlockUdaThread();
udaUnlockThread();
return err;
}

0 comments on commit a30d89f

Please sign in to comment.