Skip to content

Commit 6ebc852

Browse files
committed
clients/upsclient.c: fix void* casting for a NSS build [#3311]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent be0ae0e commit 6ebc852

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clients/upsclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ int upscli_init(int certverify, const char *certpath,
501501
void upscli_add_host_cert(const char* hostname, const char* certname, int certverify, int forcessl)
502502
{
503503
#ifdef WITH_NSS
504-
HOST_CERT_t* cert = xmalloc(sizeof(HOST_CERT_t));
504+
HOST_CERT_t* cert = (HOST_CERT_t *)xmalloc(sizeof(HOST_CERT_t));
505505
cert->next = first_host_cert;
506506
cert->host = xstrdup(hostname);
507507
cert->certname = xstrdup(certname);

0 commit comments

Comments
 (0)