diff extensions/test_app/ta_cli.c @ 406:345f3541df81

Fix a few additional warnings on 64bits arch
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 08 Jul 2010 14:59:08 +0900
parents 26aafbbc1640
children 95a784729cac
line wrap: on
line diff
--- a/extensions/test_app/ta_cli.c	Thu Jul 08 14:55:48 2010 +0900
+++ b/extensions/test_app/ta_cli.c	Thu Jul 08 14:59:08 2010 +0900
@@ -97,7 +97,7 @@
 	CHECK_FCT_DO( fd_msg_search_avp ( *msg, ta_origin_host, &avp), return );
 	if (avp) {
 		CHECK_FCT_DO( fd_msg_avp_hdr( avp, &hdr ), return );
-		fprintf(stderr, "From '%.*s' ", hdr->avp_value->os.len, hdr->avp_value->os.data);
+		fprintf(stderr, "From '%.*s' ", (int)hdr->avp_value->os.len, hdr->avp_value->os.data);
 	} else {
 		fprintf(stderr, "no_Origin-Host ");
 	}
@@ -106,7 +106,7 @@
 	CHECK_FCT_DO( fd_msg_search_avp ( *msg, ta_origin_realm, &avp), return );
 	if (avp) {
 		CHECK_FCT_DO( fd_msg_avp_hdr( avp, &hdr ), return );
-		fprintf(stderr, "('%.*s') ", hdr->avp_value->os.len, hdr->avp_value->os.data);
+		fprintf(stderr, "('%.*s') ", (int)hdr->avp_value->os.len, hdr->avp_value->os.data);
 	} else {
 		fprintf(stderr, "no_Origin-Realm ");
 	}
"Welcome to our mercurial repository"