Skip to content

Commit 29fd2ba

Browse files
committed
Make private function and data static.
1 parent bf9b244 commit 29fd2ba

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Modules/zipimport.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct st_zip_searchorder {
2020
non-package .pyc, .pyo and .py entries. The .pyc and .pyo entries
2121
are swapped by initzipimport() if we run in optimized mode. Also,
2222
'/' is replaced by SEP there. */
23-
struct st_zip_searchorder zip_searchorder[] = {
23+
static struct st_zip_searchorder zip_searchorder[] = {
2424
{"/__init__.pyc", IS_PACKAGE | IS_BYTECODE},
2525
{"/__init__.pyo", IS_PACKAGE | IS_BYTECODE},
2626
{"/__init__.py", IS_PACKAGE | IS_SOURCE},
@@ -982,7 +982,8 @@ compile_source(char *pathname, PyObject *source)
982982

983983
/* Convert the date/time values found in the Zip archive to a value
984984
that's compatible with the time stamp stored in .pyc files. */
985-
time_t parse_dostime(int dostime, int dosdate)
985+
static time_t
986+
parse_dostime(int dostime, int dosdate)
986987
{
987988
struct tm stm;
988989

0 commit comments

Comments
 (0)