Make some variables static.

This commit is contained in:
Alexandre Julliard 2007-11-06 14:38:54 +01:00
parent 26b182fd92
commit 0590fe2ecf
5 changed files with 9 additions and 8 deletions

View File

@ -137,7 +137,7 @@ typedef struct WELLKOWNRID
DWORD Rid;
} WELLKNOWNRID;
WELLKNOWNRID WellKnownRids[] = {
static const WELLKNOWNRID WellKnownRids[] = {
{ WinAccountAdministratorSid, DOMAIN_USER_RID_ADMIN },
{ WinAccountGuestSid, DOMAIN_USER_RID_GUEST },
{ WinAccountKrbtgtSid, DOMAIN_USER_RID_KRBTGT },

View File

@ -45,7 +45,7 @@ struct pending_credentials
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_DEBUG critsect_debug =

View File

@ -44,10 +44,11 @@ INSTALLUI_HANDLERW gUIHandlerW = NULL;
DWORD gUIFilter = 0;
LPVOID gUIContext = NULL;
WCHAR gszLogFile[MAX_PATH];
WCHAR msi_path[MAX_PATH];
ITypeLib *msi_typelib = NULL;
HINSTANCE msi_hInstance;
static WCHAR msi_path[MAX_PATH];
static ITypeLib *msi_typelib;
/*
* Dll lifetime tracking declaration
*/

View File

@ -31,6 +31,9 @@
#include <stdarg.h>
#include "tomcrypt.h"
/* table of first PRIME_SIZE primes */
static const mp_digit __prime_tab[];
/* Known optimal configurations
CPU /Compiler /MUL CUTOFF/SQR CUTOFF
-------------------------------------------------------------
@ -3808,7 +3811,7 @@ mp_zero (mp_int * a)
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,
0x0017, 0x001D, 0x001F, 0x0025, 0x0029, 0x002B, 0x002F, 0x0035,
0x003B, 0x003D, 0x0043, 0x0047, 0x0049, 0x004F, 0x0053, 0x0059,

View File

@ -473,9 +473,6 @@ int mp_exptmod(const mp_int *a, const mp_int *b, mp_int *c, mp_int *d);
/* number of primes */
#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 */
int mp_prime_is_divisible(const mp_int *a, int *result);