@@ -175,7 +175,7 @@ int valid_handler(struct nl_msg *msg, void *arg);
void register_handler(int (*handler)(struct nl_msg *, void *), void *data);
int mac_addr_a2n(unsigned char *mac_addr, char *arg);
-void mac_addr_n2a(char *mac_addr, unsigned char *arg);
+void mac_addr_n2a(char *mac_addr, const unsigned char *arg);
int parse_hex_mask(char *hexmask, unsigned char **result, size_t *result_len,
unsigned char **mask);
unsigned char *parse_hex(char *hex, size_t *outlen);
@@ -5,7 +5,7 @@
#include "iw.h"
#include "nl80211.h"
-void mac_addr_n2a(char *mac_addr, unsigned char *arg)
+void mac_addr_n2a(char *mac_addr, const unsigned char *arg)
{
int i, l;
The parameter is not modified, so we can make it constant. This makes it possible to provide other const parameters to this function. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- iw.h | 2 +- util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)