Fix for missing-field-initializers compiler warning
authorGeorge Nash <george.nash@intel.com>
Tue, 7 Feb 2017 23:30:30 +0000 (15:30 -0800)
committerRick Bell <richard.s.bell@intel.com>
Thu, 9 Feb 2017 19:22:16 +0000 (19:22 +0000)
commit3d1b9b09e7651c2062111d5a624568f3d18ac1fa
treeab89abb5b560b59fc69943091bf15767c4de6b34
parent9026a7bba362e63a37e3636cfb8920edae3d26c2
Fix for missing-field-initializers compiler warning

The OCDevAddr struct has 7 values only 2 were
initilized when the addr struct was created.

Two values the port and addr were set after the
initilization. All values are now intilized when
the OCDevAddr struct is created.

In addition the EXPECT_EQ was changed to EXPECT_STREQ
the macro undertands that a string is expected and
will display more informative errors if the test fails.

Change-Id: I74093d0a42961f65c3709254e949b8feb8aec587
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17101
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
resource/unittests/OCRepresentationTest.cpp