Constify pointer-typed function arguments

Most of our pointer function arguments are inputs; mark them as const.

Based on a suggestion from Joel Stanley <joel@jms.id.au>.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/inarp.c b/inarp.c
index 4a92ed7..c30e1e8 100644
--- a/inarp.c
+++ b/inarp.c
@@ -44,10 +44,10 @@
 
 static int send_arp_packet(int fd,
 		int ifindex,
-		unsigned char *src_mac,
-		struct in_addr *src_ip,
-		unsigned char *dest_mac,
-		struct in_addr *dest_ip)
+		const unsigned char *src_mac,
+		const struct in_addr *src_ip,
+		const unsigned char *dest_mac,
+		const struct in_addr *dest_ip)
 {
 	struct sockaddr_ll addr;
 	struct arp_packet arp;
@@ -93,7 +93,7 @@
 	return rc;
 }
 
-static void show_mac_addr(const char *name, unsigned char *mac_addr)
+static void show_mac_addr(const char *name, const unsigned char *mac_addr)
 {
 	int i;
 	printf("%s MAC address: ", name);