From: tobhe Date: Thu, 25 Nov 2021 19:41:03 +0000 (+0000) Subject: Remove unused variable fd. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9e93d21119dc95a6d67f89556baf66b1eee7db30;p=openbsd Remove unused variable fd. --- diff --git a/sbin/iked/pfkey.c b/sbin/iked/pfkey.c index c59aa1f8105..d917378d582 100644 --- a/sbin/iked/pfkey.c +++ b/sbin/iked/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.79 2021/11/24 21:06:21 tobhe Exp $ */ +/* $OpenBSD: pfkey.c,v 1.80 2021/11/25 19:41:03 tobhe Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -1814,7 +1814,7 @@ pfkey_process(struct iked *env, struct pfkey_message *pm) struct sadb_x_policy sa_pol; struct sockaddr *ssrc, *sdst, *smask, *dmask, *speer; struct iovec iov[IOV_CNT]; - int ret = 0, iov_cnt, fd; + int ret = 0, iov_cnt; uint8_t *reply; ssize_t rlen; const char *errmsg = NULL; @@ -1825,7 +1825,6 @@ pfkey_process(struct iked *env, struct pfkey_message *pm) if (!env || !data || !len) return (0); - fd = env->sc_pfkey; hdr = (struct sadb_msg *)data; switch (hdr->sadb_msg_type) {