mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 14:05:22 +08:00
make the addr argument of ll_addr_n2a const
This avoids build warnings when AF_PACKET support is added to rt_addr_n2a. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
26dcdf3a91
commit
71b4d59b30
@ -22,7 +22,7 @@ int inet_proto_a2n(const char *buf);
|
|||||||
|
|
||||||
|
|
||||||
const char * ll_type_n2a(int type, char *buf, int len);
|
const char * ll_type_n2a(int type, char *buf, int len);
|
||||||
const char *ll_addr_n2a(unsigned char *addr, int alen,
|
const char *ll_addr_n2a(const unsigned char *addr, int alen,
|
||||||
int type, char *buf, int blen);
|
int type, char *buf, int blen);
|
||||||
int ll_addr_a2n(char *lladdr, int len, const char *arg);
|
int ll_addr_a2n(char *lladdr, int len, const char *arg);
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
|
||||||
const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen)
|
const char *ll_addr_n2a(const unsigned char *addr, int alen, int type, char *buf, int blen)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int l;
|
int l;
|
||||||
|
Loading…
Reference in New Issue
Block a user