]> granicus.if.org Git - curl/commitdiff
nss: make the global variables static
authorDaniel Stenberg <daniel@haxx.se>
Wed, 17 Aug 2016 08:50:06 +0000 (10:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Aug 2016 08:50:06 +0000 (10:50 +0200)
lib/vtls/nss.c

index ad33f2583a9d155f2422689bd5d9c970a1d4c01b..20c4277ce4ab95f1c51ed19109d95392647633d1 100644 (file)
 #define SLOTSIZE 13
 
 PRFileDesc *PR_ImportTCPSocket(PRInt32 osfd);
-
-PRLock * nss_initlock = NULL;
-PRLock * nss_crllock = NULL;
-struct curl_llist *nss_crl_list = NULL;
-NSSInitContext * nss_context = NULL;
-
-volatile int initialized = 0;
+static PRLock *nss_initlock = NULL;
+static PRLock *nss_crllock = NULL;
+static struct curl_llist *nss_crl_list = NULL;
+static NSSInitContext *nss_context = NULL;
+static volatile int initialized = 0;
 
 typedef struct {
   const char *name;
@@ -183,7 +181,7 @@ static const cipher_s cipherlist[] = {
 };
 
 static const char* pem_library = "libnsspem.so";
-SECMODModule* mod = NULL;
+static SECMODModule* mod = NULL;
 
 /* NSPR I/O layer we use to detect blocking direction during SSL handshake */
 static PRDescIdentity nspr_io_identity = PR_INVALID_IO_LAYER;