]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Changing the strategy field of the call_queue struct to be signed instead of unsigned,
authorMark Michelson <mmichelson@digium.com>
Wed, 17 Oct 2007 21:39:05 +0000 (21:39 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 17 Oct 2007 21:39:05 +0000 (21:39 +0000)
since the code attempts to set the strategy to -1 if you specify a bogus strategy.
While this isn't a huge issue in 1.4, it could be a problem for someone who, say, tries
to use the roundrobin strategy in trunk (despite all the deprecation warnings in 1.4).

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

apps/app_queue.c

index a30ba687fa616b39013aeee3d5d1324f7ec9a91e..7a5ba8f36ba33cf12a611fc405d22f208ac2b065 100644 (file)
@@ -359,7 +359,7 @@ struct call_queue {
        unsigned int wrapped:1;
        unsigned int timeoutrestart:1;
        unsigned int announceholdtime:2;
-       unsigned int strategy:3;
+       int strategy:4;
        unsigned int maskmemberstatus:1;
        unsigned int realtime:1;
        unsigned int found:1;