mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
use the UNUSED() macro
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Brian Wellington
|
* Principal Author: Brian Wellington
|
||||||
* $Id: openssl_link.c,v 1.20 2000/05/11 22:47:00 gson Exp $
|
* $Id: openssl_link.c,v 1.21 2000/05/11 22:48:12 gson Exp $
|
||||||
*/
|
*/
|
||||||
#if defined(OPENSSL)
|
#if defined(OPENSSL)
|
||||||
|
|
||||||
@@ -516,11 +516,12 @@ dst_openssl_from_file(dst_key_t *key, const isc_uint16_t id, isc_mem_t *mctx) {
|
|||||||
static void
|
static void
|
||||||
dst_openssl_destroy(void *key, isc_mem_t *mctx) {
|
dst_openssl_destroy(void *key, isc_mem_t *mctx) {
|
||||||
DSA *dsa = (DSA *) key;
|
DSA *dsa = (DSA *) key;
|
||||||
|
|
||||||
|
UNUSED(mctx);
|
||||||
|
|
||||||
if (dsa == NULL)
|
if (dsa == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mctx = mctx; /* make the compiler happy */
|
|
||||||
|
|
||||||
DSA_free(dsa);
|
DSA_free(dsa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Brian Wellington
|
* Principal Author: Brian Wellington
|
||||||
* $Id: openssldh_link.c,v 1.13 2000/05/09 22:22:16 tale Exp $
|
* $Id: openssldh_link.c,v 1.14 2000/05/11 22:47:02 gson Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(OPENSSL)
|
#if defined(OPENSSL)
|
||||||
@@ -255,7 +255,7 @@ dst_openssldh_from_dns(dst_key_t *key, isc_buffer_t *data, isc_mem_t *mctx) {
|
|||||||
isc_uint16_t plen, glen, publen;
|
isc_uint16_t plen, glen, publen;
|
||||||
int special = 0;
|
int special = 0;
|
||||||
|
|
||||||
mctx = mctx; /* make the compiler happy */
|
UNUSED(mctx);
|
||||||
|
|
||||||
isc_buffer_remainingregion(data, &r);
|
isc_buffer_remainingregion(data, &r);
|
||||||
if (r.length == 0)
|
if (r.length == 0)
|
||||||
@@ -521,11 +521,12 @@ dst_openssldh_from_file(dst_key_t *key, const isc_uint16_t id,
|
|||||||
static void
|
static void
|
||||||
dst_openssldh_destroy(void *key, isc_mem_t *mctx) {
|
dst_openssldh_destroy(void *key, isc_mem_t *mctx) {
|
||||||
DH *dh = (DH *) key;
|
DH *dh = (DH *) key;
|
||||||
|
|
||||||
|
UNUSED(mctx);
|
||||||
|
|
||||||
if (dh == NULL)
|
if (dh == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mctx = mctx; /* make the compiler happy */
|
|
||||||
|
|
||||||
if (dh->p == &bn768 || dh->p == &bn1024)
|
if (dh->p == &bn768 || dh->p == &bn1024)
|
||||||
dh->p = NULL;
|
dh->p = NULL;
|
||||||
if (dh->g == &bn2)
|
if (dh->g == &bn2)
|
||||||
@@ -553,7 +554,7 @@ dst_openssldh_generate(dst_key_t *key, int generator, isc_mem_t *mctx) {
|
|||||||
isc_buffer_t dns;
|
isc_buffer_t dns;
|
||||||
isc_region_t r;
|
isc_region_t r;
|
||||||
|
|
||||||
mctx = mctx; /* make the compiler happy */
|
UNUSED(mctx);
|
||||||
|
|
||||||
if (generator == 0) {
|
if (generator == 0) {
|
||||||
if (key->key_size == 768 || key->key_size == 1024) {
|
if (key->key_size == 768 || key->key_size == 1024) {
|
||||||
|
Reference in New Issue
Block a user