Mercurial > hg > freeDiameter
changeset 714:a49d05084fff
Fixed wrong prototype
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 15 Feb 2011 14:23:48 +0900 |
parents | 14c07fc54656 |
children | 1c838ecd3442 |
files | extensions/test_acct/test_acct.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/test_acct/test_acct.c Tue Feb 15 14:23:27 2011 +0900 +++ b/extensions/test_acct/test_acct.c Tue Feb 15 14:23:48 2011 +0900 @@ -61,7 +61,8 @@ struct msg *ans, *qry; struct avp * a = NULL; struct avp_hdr * h = NULL; - char * s; + os0_t s; + size_t sl; qry = *msg; /* Create the answer message, including the Session-Id AVP */ @@ -73,8 +74,8 @@ fd_log_debug("--------------Received the following Accounting message:--------------\n"); - CHECK_FCT( fd_sess_getsid ( sess, &s ) ); - fd_log_debug("Session: %s\n", s); + CHECK_FCT( fd_sess_getsid ( sess, &s, &sl ) ); + fd_log_debug("Session: %.*s\n", (int)sl, s); /* The AVPs that we copy in the answer */ CHECK_FCT( fd_msg_search_avp ( qry, tac_dict.Accounting_Record_Type, &a) );