273fc4
From 6e45acbf3d64b9bd945adcb3de622fd7d059ceb9 Mon Sep 17 00:00:00 2001
273fc4
From: Pavel Zhukov <pzhukov@redhat.com>
273fc4
Date: Fri, 6 Apr 2018 15:04:02 +0200
273fc4
Subject: [PATCH] Drop unused variable
273fc4
273fc4
Compillation with Werror=all is now successfull.
273fc4
---
273fc4
 gram.y | 1 -
273fc4
 1 file changed, 1 deletion(-)
273fc4
273fc4
diff --git a/gram.y b/gram.y
273fc4
index cc0dd4b..5db3bde 100644
273fc4
--- a/gram.y
273fc4
+++ b/gram.y
273fc4
@@ -408,7 +408,6 @@ v6addrlist_rasrcaddress	: IPV6ADDR ';'
273fc4
 prefixdef	: prefixhead optional_prefixplist ';'
273fc4
 		{
273fc4
 			if (prefix) {
273fc4
-				unsigned int dst;
273fc4
 
273fc4
 				if (prefix->AdvPreferredLifetime > prefix->AdvValidLifetime)
273fc4
 				{
273fc4
diff --git a/send.c b/send.c
273fc4
index 8bc16a8..62e3e68 100644
273fc4
--- a/send.c
273fc4
+++ b/send.c
273fc4
@@ -797,7 +797,7 @@ static int send_ra(int sock, struct Interface *iface, struct in6_addr const *des
273fc4
 		}
273fc4
 
273fc4
 		// RA built, now send it.
273fc4
-		dlog(LOG_DEBUG, 5, "sending RA to %s on %s (%s), %lu options (using %lu/%u bytes)", dest_text, iface->props.name,
273fc4
+		dlog(LOG_DEBUG, 5, "sending RA to %s on %s (%s), %lu options (using %zd/%u bytes)", dest_text, iface->props.name,
273fc4
 		     src_text, option_count, sb->used, iface->props.max_ra_option_size);
273fc4
 		int err = really_send(sock, dest, &iface->props, sb);
273fc4
 		if (err < 0) {