File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ static int parallel_jobs;
24
24
* it can be passed to WaitForMultipleObjects(). We use two arrays
25
25
* so the thread_handles array can be passed to WaitForMultipleObjects().
26
26
*/
27
- HANDLE * thread_handles ;
27
+ static HANDLE * thread_handles ;
28
28
29
29
typedef struct
30
30
{
@@ -42,11 +42,11 @@ typedef struct
42
42
char * old_tablespace ;
43
43
} transfer_thread_arg ;
44
44
45
- exec_thread_arg * * exec_thread_args ;
46
- transfer_thread_arg * * transfer_thread_args ;
45
+ static exec_thread_arg * * exec_thread_args ;
46
+ static transfer_thread_arg * * transfer_thread_args ;
47
47
48
48
/* track current thread_args struct so reap_child() can be used for all cases */
49
- void * * cur_thread_args ;
49
+ static void * * cur_thread_args ;
50
50
51
51
DWORD win32_exec_prog (exec_thread_arg * args );
52
52
DWORD win32_transfer_all_new_dbs (transfer_thread_arg * args );
Original file line number Diff line number Diff line change 15
15
#include <olectl.h>
16
16
17
17
/* Global variables */
18
- HANDLE g_module = NULL ; /* hModule of DLL */
18
+ static HANDLE g_module = NULL ; /* hModule of DLL */
19
19
20
20
/*
21
21
* The event source is stored as a registry key.
22
22
* The maximum length of a registry key is 255 characters.
23
23
* http://msdn.microsoft.com/en-us/library/ms724872(v=vs.85).aspx
24
24
*/
25
- char event_source [256 ] = DEFAULT_EVENT_SOURCE ;
25
+ static char event_source [256 ] = DEFAULT_EVENT_SOURCE ;
26
26
27
27
/* Prototypes */
28
28
HRESULT DllInstall (BOOL bInstall , LPCWSTR pszCmdLine );
Original file line number Diff line number Diff line change 26
26
#ifdef WIN32
27
27
28
28
/* internal vars */
29
- char * restrict_env ;
29
+ static char * restrict_env ;
30
30
31
31
/* Windows API define missing from some versions of MingW headers */
32
32
#ifndef DISABLE_MAX_PRIVILEGE
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ LookupWSErrorMessage(DWORD err, char *dest)
231
231
}
232
232
233
233
234
- struct MessageDLL
234
+ static struct MessageDLL
235
235
{
236
236
const char * dll_name ;
237
237
void * handle ;
You can’t perform that action at this time.
0 commit comments