diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-11-21 00:59:23 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-11-21 00:59:23 +0000 |
commit | 4e67fdd3f959a2bff186fd74bbee5f773979872c (patch) | |
tree | 6b8bf6fd8c40cc5c15090b4a14b21dda57adb50c /channels | |
parent | e8aa0e29cea69977b5396b200ce418a65d331aac (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@158262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-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 f857b5005..6894829a0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7309,7 +7309,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action ast_log(LOG_WARNING, "SDP syntax 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 syntax error in o= line version\n"); return -1; } |