1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 11:03:50 +01:00

gcoap_forward_proxy: const arg to gcoap_forward_proxy_request_process()

This commit is contained in:
Benjamin Valentin 2022-09-07 12:31:39 +02:00
parent 1552267d19
commit 02aeab750a
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ void gcoap_forward_proxy_init(void);
* @return -EINVAL if Proxy-Uri is malformed * @return -EINVAL if Proxy-Uri is malformed
*/ */
int gcoap_forward_proxy_request_process(coap_pkt_t *pkt, int gcoap_forward_proxy_request_process(coap_pkt_t *pkt,
sock_udp_ep_t *client); const sock_udp_ep_t *client);
/** /**
* @brief Finds the memo for an outstanding request within the * @brief Finds the memo for an outstanding request within the

View File

@ -61,7 +61,7 @@ void gcoap_forward_proxy_init(void)
gcoap_register_listener(&forward_proxy_listener); gcoap_register_listener(&forward_proxy_listener);
} }
static client_ep_t *_allocate_client_ep(sock_udp_ep_t *ep) static client_ep_t *_allocate_client_ep(const sock_udp_ep_t *ep)
{ {
client_ep_t *cep; client_ep_t *cep;
for (cep = _client_eps; for (cep = _client_eps;
@ -102,7 +102,7 @@ static ssize_t _forward_proxy_handler(coap_pkt_t *pdu, uint8_t *buf,
size_t len, coap_request_ctx_t *ctx) size_t len, coap_request_ctx_t *ctx)
{ {
int pdu_len; int pdu_len;
sock_udp_ep_t *remote = coap_request_ctx_get_remote_udp(ctx); const sock_udp_ep_t *remote = coap_request_ctx_get_remote_udp(ctx);
pdu_len = gcoap_forward_proxy_request_process(pdu, remote); pdu_len = gcoap_forward_proxy_request_process(pdu, remote);
@ -376,7 +376,7 @@ static int _gcoap_forward_proxy_via_coap(coap_pkt_t *client_pkt,
} }
int gcoap_forward_proxy_request_process(coap_pkt_t *pkt, int gcoap_forward_proxy_request_process(coap_pkt_t *pkt,
sock_udp_ep_t *client) { const sock_udp_ep_t *client) {
char *uri; char *uri;
uri_parser_result_t urip; uri_parser_result_t urip;
ssize_t optlen = 0; ssize_t optlen = 0;