Use some magic constants to get the right size
authorMark Michelson <mmichelson@digium.com>
Fri, 21 Nov 2008 01:14:20 +0000 (01:14 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 21 Nov 2008 01:14:20 +0000 (01:14 +0000)
for this sscanf statement. Thanks Richard!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158265 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6894829..0cffb9e 100644 (file)
@@ -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, "%llu", (unsigned long long *) &rua_version)) {
+       if (!sscanf(token, "%" __PRI64_PREFIX "u", &rua_version)) {
                ast_log(LOG_WARNING, "SDP syntax error in o= line version\n");
                return -1;
        }