[icinga-checkins] icinga.org: icinga-core/mfriedrich/ido: fix type warning when passing strlen value to printf

git at icinga.org git at icinga.org
Fri Jul 22 14:50:57 CEST 2011


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

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Fri Jun 17 22:06:56 2011 +0200

fix type warning when passing strlen value to printf

---

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

diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index 77bb1de..60fb7e0 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -6451,7 +6451,7 @@ void ido2db_oci_print_binds(OCI_Statement *st, int bsize, char ** outp) {
                 if (strlen(val)<strlen(data)+2) {
                     strcat(val,"...");
                 }
-                sprintf(fmt,"Text Size:%u",strlen(data));
+                sprintf(fmt,"Text Size:%u",(unsigned int)strlen(data));
                 break;
             case OCI_CDT_LONG : //OCI_Long *
                 switch(subtype) {





More information about the icinga-checkins mailing list