diff options
author | Daiki Ueno <ueno@gnu.org> | 2021-05-11 11:04:54 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-05-11 13:20:36 +0200 |
commit | 60f32b84f41d8c4f56f08e5332f341d0ecf693ee (patch) | |
tree | cc77970bda7d937fbe4ae1f221b7392f4ccaad6d /lib/pin.c | |
parent | 8d1f37c54acb5c30e5de47a8a04139fadb85dc4e (diff) | |
download | gnutls-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |