From f97418dd228d3b12472179d02a3889b40dfd7d78 Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 20 Jan 2022 14:12:55 +0000 Subject: [PATCH] ospf6ctl: fix -Wunused-but-set-variable warning ok guenther@ --- usr.sbin/ospf6ctl/ospf6ctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index fa1dc2cfd77..21414b28fd2 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.51 2020/04/05 18:19:04 denis Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.52 2022/01/20 14:12:55 naddy Exp $ */ /* * Copyright (c) 2005 Claudio Jeker @@ -1179,9 +1179,7 @@ print_ospf_rtr_flags(u_int8_t opts) int show_rib_detail_msg(struct imsg *imsg) { - static struct in_addr area_id; struct ctl_rt *rt; - struct area *area; char *dstnet; static u_int8_t lasttype; @@ -1250,8 +1248,6 @@ show_rib_detail_msg(struct imsg *imsg) } break; case IMSG_CTL_AREA: - area = imsg->data; - area_id = area->id; break; case IMSG_CTL_END: printf("\n"); -- 2.20.1