net: if: Make gateway address in net_if_ipv4_set_gw() const
As the function does not modify the parameter, we can make it const. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
7063921e87
commit
766ad9f96c
2 changed files with 2 additions and 2 deletions
|
@ -1672,7 +1672,7 @@ __syscall bool net_if_ipv4_set_netmask_by_index(int index,
|
|||
* @param iface Interface to use.
|
||||
* @param gw IPv4 address of an gateway
|
||||
*/
|
||||
void net_if_ipv4_set_gw(struct net_if *iface, struct in_addr *gw);
|
||||
void net_if_ipv4_set_gw(struct net_if *iface, const struct in_addr *gw);
|
||||
|
||||
/**
|
||||
* @brief Set IPv4 gateway for an interface index.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue