]> granicus.if.org Git - neomutt/commitdiff
Rename and make another file-level variable static
authorPietro Cerutti <gahr@gahr.ch>
Mon, 23 Apr 2018 13:37:14 +0000 (13:37 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 23 Apr 2018 23:03:20 +0000 (00:03 +0100)
ncrypt/crypt_mod.c

index 4ae59fced883245acd56dcedb032cbf4349a9952..8c9dde088472f052736fae92df924b1626a6a906 100644 (file)
@@ -41,7 +41,7 @@ struct CryptModule
   struct CryptModuleSpecs *specs;
   STAILQ_ENTRY(CryptModule) entries;
 };
-STAILQ_HEAD(, CryptModule) modules = STAILQ_HEAD_INITIALIZER(modules);
+static STAILQ_HEAD(, CryptModule) CryptModules = STAILQ_HEAD_INITIALIZER(CryptModules);
 
 /**
  * crypto_module_register - Register a new crypto module
@@ -50,7 +50,7 @@ void crypto_module_register(struct CryptModuleSpecs *specs)
 {
   struct CryptModule *module = mutt_mem_calloc(1, sizeof(struct CryptModule));
   module->specs = specs;
-  STAILQ_INSERT_HEAD(&modules, module, entries);
+  STAILQ_INSERT_HEAD(&CryptModules, module, entries);
 }
 
 /**
@@ -62,7 +62,7 @@ void crypto_module_register(struct CryptModuleSpecs *specs)
 struct CryptModuleSpecs *crypto_module_lookup(int identifier)
 {
   struct CryptModule *module = NULL;
-  STAILQ_FOREACH(module, &modules, entries)
+  STAILQ_FOREACH(module, &CryptModules, entries)
   {
     if (module->specs->identifier == identifier)
     {