summaryrefslogtreecommitdiff
path: root/lib/pin.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2021-05-11 11:04:54 +0200
committerDaiki Ueno <ueno@gnu.org>2021-05-11 13:20:36 +0200
commit60f32b84f41d8c4f56f08e5332f341d0ecf693ee (patch)
treecc77970bda7d937fbe4ae1f221b7392f4ccaad6d /lib/pin.c
parent8d1f37c54acb5c30e5de47a8a04139fadb85dc4e (diff)
downloadgnutls-60f32b84f41d8c4f56f08e5332f341d0ecf693ee.tar.gz
_gnutls_retrieve_pin: remove array declarator in function argument
This was originally to eliminate the warnings with -Warray-parameter: pin.c:70:27: warning: argument 5 of type 'char[256]' with mismatched bound [-Warray-parameter=] 70 | char pin[GNUTLS_PKCS11_MAX_PIN_LEN], unsigned pin_size) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pin.c:23: ./pin.h:9:48: note: previously declared as 'char *' 9 | unsigned pin_flags, char *pin, unsigned pin_size); | ~~~~~~^~~ though it turned out to be unnecessary because the function merely delegate the call to the user-supplied callbacks. Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/pin.c')
-rw-r--r--lib/pin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pin.c b/lib/pin.c
index 13069c5e19..2c6f06ee2c 100644
--- a/lib/pin.c
+++ b/lib/pin.c
@@ -67,7 +67,7 @@ gnutls_pin_callback_t gnutls_pkcs11_get_pin_function(void **userdata)
int
_gnutls_retrieve_pin(struct pin_info_st *pin_info, const char *url, const char *label,
unsigned flags,
- char pin[GNUTLS_PKCS11_MAX_PIN_LEN], unsigned pin_size)
+ char *pin, unsigned pin_size)
{
int ret;