summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-02-21 23:26:02 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-02-21 23:26:02 (GMT)
commitbf1f376b3ead24b382ed9ad12b4a904116d5bc33 (patch)
treed4634e813e34c0e68224c0aa86307b752bc189c0 /Python
parenta2af1a5a5a73064328246f6c2b2233365e54acf3 (diff)
downloadcpython-bf1f376b3ead24b382ed9ad12b4a904116d5bc33.zip
cpython-bf1f376b3ead24b382ed9ad12b4a904116d5bc33.tar.gz
cpython-bf1f376b3ead24b382ed9ad12b4a904116d5bc33.tar.bz2
Issue #23152: Renames time_t_to_FILE_TIME to _Py_time_t_to_FILE_TIME, removes unused struct win32_stat and return value
Diffstat (limited to 'Python')
-rw-r--r--Python/fileutils.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index bf99e2d..e7111c1 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -563,7 +563,7 @@ FILE_TIME_to_time_t_nsec(FILETIME *in_ptr, time_t *time_out, int* nsec_out)
}
void
-time_t_to_FILE_TIME(time_t time_in, int nsec_in, FILETIME *out_ptr)
+_Py_time_t_to_FILE_TIME(time_t time_in, int nsec_in, FILETIME *out_ptr)
{
/* XXX endianness */
__int64 out;
@@ -591,7 +591,7 @@ attributes_to_mode(DWORD attr)
return m;
}
-int
+void
_Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag, struct _Py_stat_struct *result)
{
memset(result, 0, sizeof(*result));
@@ -611,8 +611,6 @@ _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag,
result->st_mode |= S_IFLNK;
}
result->st_file_attributes = info->dwFileAttributes;
-
- return 0;
}
#endif