Lines Matching refs:s
81 coap_free(rd->data.s); in rd_delete()
119 if (rd && rd->data.s) in hnd_get_resource()
120 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource()
154 tmp.s = (unsigned char *)coap_malloc(tmp.length); in hnd_put_resource()
155 if (!tmp.s) { in hnd_put_resource()
161 coap_free(rd->data.s); in hnd_put_resource()
162 rd->data.s = tmp.s; in hnd_put_resource()
164 memcpy(rd->data.s, data, rd->data.length); in hnd_put_resource()
275 result->s = ++data; in parse_param()
369 rd->data.s = (unsigned char *)coap_malloc(rd->data.length); in make_rd()
370 if (!rd->data.s) { in make_rd()
375 memcpy(rd->data.s, data, rd->data.length); in make_rd()
428 memcpy(loc + loc_size, h.s, min(h.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
434 ins.s, min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
447 ins.s, in hnd_post_rd()
471 if (ins.s) { in hnd_post_rd()
476 memcpy(buf + 1, ins.s, ins.length); in hnd_post_rd()
487 if (rt.s) { in hnd_post_rd()
492 memcpy(buf + 1, rt.s, rt.length); in hnd_post_rd()
575 int s; in get_context() local
584 s = getaddrinfo(node, port, &hints, &result); in get_context()
585 if ( s != 0 ) { in get_context()
586 fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s)); in get_context()