From: naddy Date: Thu, 20 Jan 2022 14:10:07 +0000 (+0000) Subject: dvmrpctl: fix -Wunused-but-set-variable warning X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d28a6801acbd6e28052d42fff2030a07d26d8680;p=openbsd dvmrpctl: fix -Wunused-but-set-variable warning ok guenther@ --- diff --git a/usr.sbin/dvmrpctl/dvmrpctl.c b/usr.sbin/dvmrpctl/dvmrpctl.c index 1b06d2bd134..e805e77266b 100644 --- a/usr.sbin/dvmrpctl/dvmrpctl.c +++ b/usr.sbin/dvmrpctl/dvmrpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvmrpctl.c,v 1.15 2015/12/05 13:11:00 claudio Exp $ */ +/* $OpenBSD: dvmrpctl.c,v 1.16 2022/01/20 14:10:07 naddy Exp $ */ /* * Copyright (c) 2005 Claudio Jeker @@ -515,11 +515,8 @@ print_dvmrp_options(u_int8_t opts) int show_nbr_detail_msg(struct imsg *imsg) { - struct ctl_nbr *nbr; - switch (imsg->hdr.type) { case IMSG_CTL_SHOW_NBR: - nbr = imsg->data; break; case IMSG_CTL_END: printf("\n");