]> granicus.if.org Git - curl/commitdiff
nss_load_key: fix unused variable warning
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Feb 2011 18:33:22 +0000 (19:33 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 16 Feb 2011 18:34:04 +0000 (19:34 +0100)
lib/nss.c

index 5b648cdac34698052c25554a76ecd3034412b428..e115ac9121ef5be165ee1260f2005b476b40bf24 100644 (file)
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -537,6 +537,7 @@ static int nss_load_key(struct connectdata *conn, int sockindex,
   PK11SlotInfo *slot;
   SECStatus status;
   struct ssl_connect_data *ssl = conn->ssl;
+  (void)sockindex; /* unused */
 
   if(CURLE_OK != nss_create_object(ssl, CKO_PRIVATE_KEY, key_file, FALSE)) {
     PR_SetError(SEC_ERROR_BAD_KEY, 0);
@@ -561,6 +562,7 @@ static int nss_load_key(struct connectdata *conn, int sockindex,
    */
   (void)conn; /* unused */
   (void)key_file; /* unused */
+  (void)sockindex; /* unused */
   return 0;
 #endif
 }