Make some variables static.
This commit is contained in:
parent
26b182fd92
commit
0590fe2ecf
|
@ -137,7 +137,7 @@ typedef struct WELLKOWNRID
|
||||||
DWORD Rid;
|
DWORD Rid;
|
||||||
} WELLKNOWNRID;
|
} WELLKNOWNRID;
|
||||||
|
|
||||||
WELLKNOWNRID WellKnownRids[] = {
|
static const WELLKNOWNRID WellKnownRids[] = {
|
||||||
{ WinAccountAdministratorSid, DOMAIN_USER_RID_ADMIN },
|
{ WinAccountAdministratorSid, DOMAIN_USER_RID_ADMIN },
|
||||||
{ WinAccountGuestSid, DOMAIN_USER_RID_GUEST },
|
{ WinAccountGuestSid, DOMAIN_USER_RID_GUEST },
|
||||||
{ WinAccountKrbtgtSid, DOMAIN_USER_RID_KRBTGT },
|
{ WinAccountKrbtgtSid, DOMAIN_USER_RID_KRBTGT },
|
||||||
|
|
|
@ -45,7 +45,7 @@ struct pending_credentials
|
||||||
|
|
||||||
static HINSTANCE hinstCredUI;
|
static HINSTANCE hinstCredUI;
|
||||||
|
|
||||||
struct list pending_credentials_list = LIST_INIT(pending_credentials_list);
|
static struct list pending_credentials_list = LIST_INIT(pending_credentials_list);
|
||||||
|
|
||||||
static CRITICAL_SECTION csPendingCredentials;
|
static CRITICAL_SECTION csPendingCredentials;
|
||||||
static CRITICAL_SECTION_DEBUG critsect_debug =
|
static CRITICAL_SECTION_DEBUG critsect_debug =
|
||||||
|
|
|
@ -44,10 +44,11 @@ INSTALLUI_HANDLERW gUIHandlerW = NULL;
|
||||||
DWORD gUIFilter = 0;
|
DWORD gUIFilter = 0;
|
||||||
LPVOID gUIContext = NULL;
|
LPVOID gUIContext = NULL;
|
||||||
WCHAR gszLogFile[MAX_PATH];
|
WCHAR gszLogFile[MAX_PATH];
|
||||||
WCHAR msi_path[MAX_PATH];
|
|
||||||
ITypeLib *msi_typelib = NULL;
|
|
||||||
HINSTANCE msi_hInstance;
|
HINSTANCE msi_hInstance;
|
||||||
|
|
||||||
|
static WCHAR msi_path[MAX_PATH];
|
||||||
|
static ITypeLib *msi_typelib;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Dll lifetime tracking declaration
|
* Dll lifetime tracking declaration
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "tomcrypt.h"
|
#include "tomcrypt.h"
|
||||||
|
|
||||||
|
/* table of first PRIME_SIZE primes */
|
||||||
|
static const mp_digit __prime_tab[];
|
||||||
|
|
||||||
/* Known optimal configurations
|
/* Known optimal configurations
|
||||||
CPU /Compiler /MUL CUTOFF/SQR CUTOFF
|
CPU /Compiler /MUL CUTOFF/SQR CUTOFF
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
|
@ -3808,7 +3811,7 @@ mp_zero (mp_int * a)
|
||||||
memset (a->dp, 0, sizeof (mp_digit) * a->alloc);
|
memset (a->dp, 0, sizeof (mp_digit) * a->alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
const mp_digit __prime_tab[] = {
|
static const mp_digit __prime_tab[] = {
|
||||||
0x0002, 0x0003, 0x0005, 0x0007, 0x000B, 0x000D, 0x0011, 0x0013,
|
0x0002, 0x0003, 0x0005, 0x0007, 0x000B, 0x000D, 0x0011, 0x0013,
|
||||||
0x0017, 0x001D, 0x001F, 0x0025, 0x0029, 0x002B, 0x002F, 0x0035,
|
0x0017, 0x001D, 0x001F, 0x0025, 0x0029, 0x002B, 0x002F, 0x0035,
|
||||||
0x003B, 0x003D, 0x0043, 0x0047, 0x0049, 0x004F, 0x0053, 0x0059,
|
0x003B, 0x003D, 0x0043, 0x0047, 0x0049, 0x004F, 0x0053, 0x0059,
|
||||||
|
|
|
@ -473,9 +473,6 @@ int mp_exptmod(const mp_int *a, const mp_int *b, mp_int *c, mp_int *d);
|
||||||
/* number of primes */
|
/* number of primes */
|
||||||
#define PRIME_SIZE 256
|
#define PRIME_SIZE 256
|
||||||
|
|
||||||
/* table of first PRIME_SIZE primes */
|
|
||||||
extern const mp_digit __prime_tab[];
|
|
||||||
|
|
||||||
/* result=1 if a is divisible by one of the first PRIME_SIZE primes */
|
/* result=1 if a is divisible by one of the first PRIME_SIZE primes */
|
||||||
int mp_prime_is_divisible(const mp_int *a, int *result);
|
int mp_prime_is_divisible(const mp_int *a, int *result);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue