]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cel.c: Fix mismatch in ast_cel_track_event() return type. 65/2265/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 17 Feb 2016 19:30:06 +0000 (13:30 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 17 Feb 2016 19:59:32 +0000 (13:59 -0600)
commit369981e5be51723227fc8139a10d30a897ee1145
tree7d4512fb82bbc586a5ca85892629042916a9b464
parent95e76368eba4f7d2dc2f0edd3c4c800ba2177a0a
cel.c: Fix mismatch in ast_cel_track_event() return type.

The return type of ast_cel_track_event() is not large enough to return all
64 potential bits of the event enable mask.  Fortunately, the defined CEL
events do not really need all 64 bits and the return value is only used to
determine if the requested CEL event is enabled.

* Made the ast_cel_track_event() return 0 or 1 only so the return value
can fit inside an int type instead of zero or a truncated 64 bit non-zero
value.

Change-Id: I783d932320db11a95c7bf7636a72b6fe2566904c
main/cel.c