X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Flib%2Flibcoap-4.1.1%2Fsubscribe.c;h=f168d9648aff2e794f2ec0bb7e2c4d23e8b812f4;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=e5c3d24ce5e45556225d1e39d7ec9ee81b81e106;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git 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 --- 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; - 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->coap_hdr_udp_t.code = code; /* FIXME: content-type and data (how about block?) */ if (res->uri->host.length)