service: clean up compiler warning 21/22221/2
authorGeorge Nash <george.nash@intel.com>
Fri, 14 Jul 2017 20:36:08 +0000 (13:36 -0700)
committerRick Bell <richard.s.bell@intel.com>
Thu, 21 Sep 2017 16:51:07 +0000 (16:51 +0000)
commit7a17e8034402afb15853087bf03d6bbc48fad796
tree95fc400ef9fa5e370de3f0428d4fcc1b41d06481
parent2f22892681640a7c536d0c8bb2a9296c97e09c46
service: clean up compiler warning

Clean up the implicit-function-declaration warning in
CoapHttpHandler.c. The compiler is not finding the
OCParsePayload function so it is interpreting it as a
function that takes 4 parameters and returns an int.
This is a result of how old C compilers handle
implicit-functions.

The fact that OCParsePayload was used incorrectly was hidden
it should have 5 parameters not 4.  The code now includes the
internal header ocpayloadcbor.h and fixes the call to
OCParsePayload.

Change-Id: I894e3d423617c15c1ce2cf35825637984d1babd8
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21459
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
(cherry picked from commit 35bcc24dde8e62832360092fa4da44b60e24305f)
service/coap-http-proxy/src/CoapHttpHandler.c