Skip to content

Commit

Permalink
net: in net_dst_source_addr_get() make parameter dst const
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 authored and sreimers committed Jun 14, 2021
1 parent f36881d commit bda0a42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/re_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct sa;

/* Net generic */
int net_hostaddr(int af, struct sa *ip);
int net_dst_source_addr_get(struct sa *dst, struct sa *ip);
int net_dst_source_addr_get(const struct sa *dst, struct sa *ip);
int net_default_source_addr_get(int af, struct sa *ip);
int net_default_gateway_get(int af, struct sa *gw);

Expand Down
2 changes: 1 addition & 1 deletion src/net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int net_hostaddr(int af, struct sa *ip)
*
* @return 0 if success, otherwise errorcode
*/
int net_dst_source_addr_get(struct sa *dst, struct sa *ip)
int net_dst_source_addr_get(const struct sa *dst, struct sa *ip)
{
int err;
struct udp_sock *us;
Expand Down

0 comments on commit bda0a42

Please sign in to comment.