[icinga-checkins] icinga.org: icinga-core/mfriedrich/ido: idoutils: fix syntax error while checking oci runtime

git at icinga.org git at icinga.org
Sat Feb 18 11:30:30 CET 2012


Module: icinga-core
Branch: mfriedrich/ido
Commit: eab8f03f26d1ba335f65558cf009fd5229b271c5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=eab8f03f26d1ba335f65558cf009fd5229b271c5

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Sun Jan 29 11:43:25 2012 +0100

idoutils:fix syntax error while checking oci runtime

---

 module/idoutils/src/ido2db.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/module/idoutils/src/ido2db.c b/module/idoutils/src/ido2db.c
index 51566bf..3a8ed04 100644
--- a/module/idoutils/src/ido2db.c
+++ b/module/idoutils/src/ido2db.c
@@ -256,7 +256,8 @@ int main(int argc, char **argv) {
 #ifdef USE_ORACLE /* Oracle ocilib specific */
 
 	ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db with ocilib() driver check\n");
-	if (OCI_GetOCIRuntimeVersion == OCI_UNKNOWN) {
+	dummy=OCI_GetOCIRuntimeVersion();
+	if (dummy == OCI_UNKNOWN) {
 		printf("Unknown ocilib runtime version detected. Exiting...\n");
 
 #ifdef HAVE_SSL





More information about the icinga-checkins mailing list