projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.0.0
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
connectivity
/
lib
/
libcoap-4.1.1
/
subscribe.c
diff --git
a/resource/csdk/connectivity/lib/libcoap-4.1.1/subscribe.c
b/resource/csdk/connectivity/lib/libcoap-4.1.1/subscribe.c
index
e5c3d24
..
f168d96
100644
(file)
--- a/
resource/csdk/connectivity/lib/libcoap-4.1.1/subscribe.c
+++ b/
resource/csdk/connectivity/lib/libcoap-4.1.1/subscribe.c
@@
-51,9
+51,9
@@
notify(coap_context_t *context, coap_resource_t *res,
if ( !context || !res || !sub || !(pdu = coap_new_pdu()) )
return;
if ( !context || !res || !sub || !(pdu = coap_new_pdu()) )
return;
- pdu->hdr->type = COAP_MESSAGE_CON;
- pdu->hdr->id = rand(); /* use a random transaction id */
- pdu->hdr->code = code;
+ pdu->hdr->
coap_hdr_udp_t.
type = COAP_MESSAGE_CON;
+ pdu->hdr->
coap_hdr_udp_t.
id = rand(); /* use a random transaction id */
+ pdu->hdr->co
ap_hdr_udp_t.co
de = code;
/* FIXME: content-type and data (how about block?) */
if (res->uri->host.length)
/* FIXME: content-type and data (how about block?) */
if (res->uri->host.length)