diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-03-02 08:28:54 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-03-02 08:28:54 +0000 |
commit | e04c777cc6721bf37f4747814b98baca9d269fc4 (patch) | |
tree | 749939fe718e3e47d2cbd5b17d2921b49fef0a48 /winsup/cygwin/times.cc | |
parent | 4aa1f3158feca01e294d7db2f5fafef5a2fa0b3d (diff) | |
download | newlib-e04c777cc6721bf37f4747814b98baca9d269fc4.zip newlib-e04c777cc6721bf37f4747814b98baca9d269fc4.tar.gz newlib-e04c777cc6721bf37f4747814b98baca9d269fc4.tar.bz2 |
* fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
GetSystemTime/SystemTimeToFileTime with GetSystemTimeAsFileTime.
* times.cc (time_as_timestruc_t): Ditto.
(time): Ditto.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 5e44963..4c0909e 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -255,11 +255,9 @@ to_timestruc_t (FILETIME *ptr, timestruc_t *out) void __stdcall time_as_timestruc_t (timestruc_t * out) { - SYSTEMTIME systemtime; FILETIME filetime; - GetSystemTime (&systemtime); - SystemTimeToFileTime (&systemtime, &filetime); + GetSystemTimeAsFileTime (&filetime); to_timestruc_t (&filetime, out); } @@ -269,11 +267,9 @@ extern "C" time_t time (time_t * ptr) { time_t res; - SYSTEMTIME systemtime; FILETIME filetime; - GetSystemTime (&systemtime); - SystemTimeToFileTime (&systemtime, &filetime); + GetSystemTimeAsFileTime (&filetime); res = to_time_t (&filetime); if (ptr) *ptr = res; |