]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cel.c: Fix mismatch in ast_cel_track_event() return type. 66/2266/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:33:42 +0000 (13:33 -0600)
commit5a3a857dd62638609ce0d7dbc8d97287f1aa6580
tree5f989eeb6685e3ac8c78f94461642dc89338c717
parent87ab65c557eccfe91c8aea6eba0568aa96de6412
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