From: Eric W. Biederman Date: Sun, 15 Mar 2015 19:49:10 +0000 (-0500) Subject: make the addr argument of ll_addr_n2a const X-Git-Tag: v4.1.0~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71b4d59b306ce13ef5a3f465d0e0eeb78886e47c;p=thirdparty%2Fiproute2.git 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" --- diff --git a/include/rt_names.h b/include/rt_names.h index c0ea4f982..921be0607 100644 --- a/include/rt_names.h +++ b/include/rt_names.h @@ -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_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 ll_addr_a2n(char *lladdr, int len, const char *arg); diff --git a/lib/ll_addr.c b/lib/ll_addr.c index c12ab075c..2ce9abfbb 100644 --- a/lib/ll_addr.c +++ b/lib/ll_addr.c @@ -29,7 +29,7 @@ #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 l;