diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-21 01:00:24 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-21 01:00:24 +0000 |
commit | 90c8522dee56a85fa12260521c10d52f76e932e0 (patch) | |
tree | ea8da86a3e5e6ca353ab10bf5ead0c669430a6a9 | |
parent | 6f0c0a4c97b748c170c4e7a34e082857990f599d (diff) |
Merged revisions 158262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r158262 | mmichelson | 2008-11-20 18:59:23 -0600 (Thu, 20 Nov 2008) | 6 lines
Fix the build for 32-bit systems. %lu is only 32-bits
on 32-bit systems, so we need to use %llu instead. Of course
%llu is 128-bits on 64-bit systems, so we have to cast to
unsigned long long. No harm, but it's sure annoying.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@158263 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d2a297f17..19dc9f833 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, "%lu", &rua_version)) { + if (!sscanf(token, "%llu", (unsigned long long *) &rua_version)) { ast_log(LOG_WARNING, "SDP sytax error in o= line version\n"); return -1; } |