zigbee_wrapper: Fix types and bitmasks mistakes
I am assuming author wanted to use bit mask (& operator)
and not "boolean or" (|| operator).
This change wasn't tested on device, so double check welcome.
Observed warnings using clang on GNU/Linux:
plugins/zigbee_wrapper/src/zigbee_wrapper.c:871:27: \
warning: implicit conversion from enumeration type 'OCEntityHandlerResult' to different enumeration type 'OCStackResult' [-Wenum-conversion]
stackResult = OC_EH_ERROR;
~ ^~~~~~~~~~~
plugins/zigbee_wrapper/src/zigbee_wrapper.c:1034:39: \
warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
if (attributeList.CIEMask || CIE_MOVE_TO_LEVEL)
Change-Id: Ieb8f20f121cdd11d5b697c8f8e199bd00ae295ea
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18403
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
(cherry picked from commit
cc58983e9d2a050e529ecab9ff04afbea463afa4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/19625
Reviewed-by: Todd Malsbary <todd.malsbary@intel.com>