From patchwork Wed Sep 19 06:20:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffan Karger X-Patchwork-Id: 465 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director9.mail.ord1d.rsapps.net ([172.31.255.6]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id tVEuAoB3olsiUQAAIUCqbw for ; Wed, 19 Sep 2018 12:21:20 -0400 Received: from proxy13.mail.iad3b.rsapps.net ([172.31.255.6]) by director9.mail.ord1d.rsapps.net with LMTP id QG29CIB3olukIwAAalYnBA ; Wed, 19 Sep 2018 12:21:20 -0400 Received: from smtp13.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy13.mail.iad3b.rsapps.net with LMTP id oH2yAoB3oluEOwAAvUvv+w ; Wed, 19 Sep 2018 12:21:20 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp13.gate.iad3b.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=fox-it.com X-Suspicious-Flag: YES X-Classification-ID: 0a09562c-bc28-11e8-8067-5254001dfc40-1-1 Received: from [216.105.38.7] ([216.105.38.7:13086] helo=lists.sourceforge.net) by smtp13.gate.iad3b.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 25/59-13240-F7772AB5; Wed, 19 Sep 2018 12:21:19 -0400 Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1g2fDH-0000zB-8H; Wed, 19 Sep 2018 16:20:27 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1g2fDG-0000z5-Ut for openvpn-devel@lists.sourceforge.net; Wed, 19 Sep 2018 16:20:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject: CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6UQoZ74/0iNy/To1MRfJaf6ZrWGjRyJEJV+xUG0ewU8=; b=Hvrk+HZ/TK8AJQm5VpybeGiU7L fjQPtNNtdCYSohTbS/jDdwRJnd+RMhWjqmVbn/xjj/n5nBIn0oD8vbnNEwVasCWLIgGiKbgkb02WP IdZxSZrAa7xqn0yNxr84T9vpoZR4M14U4Mo5lpV0ocnQSpemE723DutMdoRKnf/4e1Bs=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=6UQoZ74/0iNy/To1MRfJaf6ZrWGjRyJEJV+xUG0ewU8=; b=l o0vJb8f1G71BgXmCV23nrmKkszeL+pAk4phxau3g0DXWga62VtiUNQasHU7JjHFkOvqZBDRlrYCME x09C5DTAOUiEdw8ppgeRPpaGuu58KQcl69QK8lT3kkAnOZjX0Ep1zEx65tCJJzr3wox0W7j9JXf8c PEFJPQKb/JEXJR8o=; Received: from ns2.fox-it.com ([178.250.144.131]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.90_1) id 1g2fDF-002RhQ-9W for openvpn-devel@lists.sourceforge.net; Wed, 19 Sep 2018 16:20:26 +0000 Received: from FOXDFT52.FOX.local (unknown [10.0.0.129]) by ns2.fox-it.com (Postfix) with ESMTPS id B494B1AFABE for ; Wed, 19 Sep 2018 18:20:17 +0200 (CEST) Received: from steffan-fox.fox.local (10.0.3.178) by FOXDFT52.FOX.local (10.0.0.129) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Wed, 19 Sep 2018 18:20:17 +0200 From: Steffan Karger To: Date: Wed, 19 Sep 2018 18:20:09 +0200 Message-ID: <1537374009-11133-1-git-send-email-steffan.karger@fox-it.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-ClientProxiedBy: FOXDFT52.FOX.local (10.0.0.129) To FOXDFT52.FOX.local (10.0.0.129) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1g2fDF-002RhQ-9W Subject: [Openvpn-devel] [PATCH] Remove unused void_ptr_hash_function and void_ptr_compare_function X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox Both functions are never used, so let's get rid of them. Signed-off-by: Steffan Karger Acked-by: Gert Doering --- src/openvpn/list.c | 12 ------------ src/openvpn/list.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/src/openvpn/list.c b/src/openvpn/list.c index 09e393a..6023ea6 100644 --- a/src/openvpn/list.c +++ b/src/openvpn/list.c @@ -222,18 +222,6 @@ hash_remove_marked(struct hash *hash, struct hash_bucket *bucket) } } -uint32_t -void_ptr_hash_function(const void *key, uint32_t iv) -{ - return hash_func((const void *)&key, sizeof(key), iv); -} - -bool -void_ptr_compare_function(const void *key1, const void *key2) -{ - return key1 == key2; -} - void hash_iterator_init_range(struct hash *hash, struct hash_iterator *hi, diff --git a/src/openvpn/list.h b/src/openvpn/list.h index b67301c..6177157 100644 --- a/src/openvpn/list.h +++ b/src/openvpn/list.h @@ -116,10 +116,6 @@ void hash_iterator_free(struct hash_iterator *hi); uint32_t hash_func(const uint8_t *k, uint32_t length, uint32_t initval); -uint32_t void_ptr_hash_function(const void *key, uint32_t iv); - -bool void_ptr_compare_function(const void *key1, const void *key2); - #ifdef LIST_TEST void list_test(void);