Lines Matching +full:- +full:r
5 * SPDX-License-Identifier: Apache-2.0
26 int r; in separate_get() local
41 r = coap_ack_init(&response, request, data, sizeof(data), 0); in separate_get()
42 if (r < 0) { in separate_get()
43 return r; in separate_get()
46 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
47 if (r < 0) { in separate_get()
48 return r; in separate_get()
57 /* Re-use the buffer */ in separate_get()
58 r = coap_packet_init(&response, data, sizeof(data), in separate_get()
61 if (r < 0) { in separate_get()
62 return r; in separate_get()
65 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in separate_get()
67 if (r < 0) { in separate_get()
68 return r; in separate_get()
71 r = coap_packet_append_payload_marker(&response); in separate_get()
72 if (r < 0) { in separate_get()
73 return r; in separate_get()
76 /* The response that coap-client expects */ in separate_get()
77 r = snprintk((char *) payload, sizeof(payload), in separate_get()
79 if (r < 0) { in separate_get()
80 return r; in separate_get()
83 r = coap_packet_append_payload(&response, (uint8_t *)payload, in separate_get()
85 if (r < 0) { in separate_get()
86 return r; in separate_get()
89 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
91 return r; in separate_get()