mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libkmipclient: Fix 'assignment discards 'const' qualifier' warnings
Fix compile warnings like
warning: assignment discards 'const' qualifier from pointer target type
[-Wdiscarded-qualifiers]
by declaring the variables as const.
Reviewed-by: Finn Callies <fcallies@linux.ibm.com>
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
e2cd2e78c5
commit
604c34e66b
@@ -1370,7 +1370,8 @@ int kmip_connection_get_server_cert(const char *server,
|
||||
struct kmip_conn_config config = { 0 };
|
||||
struct kmip_connection *conn = NULL;
|
||||
int rc, numcerts, i, port_found = 0;
|
||||
char *hostname = NULL, *tok, *tok2;
|
||||
const char *tok, *tok2;
|
||||
char *hostname = NULL;
|
||||
STACK_OF(X509) *chain;
|
||||
bool do_verify = true;
|
||||
FILE *fp = NULL;
|
||||
|
||||
Reference in New Issue
Block a user