mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc ipv6: make address parameters const
This commit is contained in:
parent
991c71cf27
commit
32af3f962e
@ -43,8 +43,8 @@ extern "C" {
|
||||
* @return The an IPv6 header in packet buffer on success.
|
||||
* @return NULL on error.
|
||||
*/
|
||||
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, ipv6_addr_t *src,
|
||||
ipv6_addr_t *dst);
|
||||
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t *src,
|
||||
const ipv6_addr_t *dst);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -32,8 +32,8 @@ static char addr_str[IPV6_ADDR_MAX_STR_LEN];
|
||||
#define HDR_NETTYPE (GNRC_NETTYPE_UNDEF)
|
||||
#endif
|
||||
|
||||
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, ipv6_addr_t *src,
|
||||
ipv6_addr_t *dst)
|
||||
gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t *src,
|
||||
const ipv6_addr_t *dst)
|
||||
{
|
||||
gnrc_pktsnip_t *ipv6;
|
||||
ipv6_hdr_t *hdr;
|
||||
|
Loading…
Reference in New Issue
Block a user