From 51ddbf24663eb60973f72557290f620b1f81176d Mon Sep 17 00:00:00 2001 From: mmichelson Date: Fri, 21 Nov 2008 01:23:18 +0000 Subject: Merged revisions 158265-158266 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r158265 | mmichelson | 2008-11-20 19:14:20 -0600 (Thu, 20 Nov 2008) | 4 lines Use some magic constants to get the right size for this sscanf statement. Thanks Richard! ........ r158266 | mmichelson | 2008-11-20 19:22:18 -0600 (Thu, 20 Nov 2008) | 3 lines Use a more expressive constant for a 64-bit scanned int ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@158267 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 19dc9f833..61588db4d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6558,7 +6558,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action ast_log(LOG_WARNING, "SDP sytax error in o= line\n"); return -1; } - if (!sscanf(token, "%llu", (unsigned long long *) &rua_version)) { + if (!sscanf(token, "%" SCNu64, &rua_version)) { ast_log(LOG_WARNING, "SDP sytax error in o= line version\n"); return -1; } -- cgit v1.2.3