Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c379ade

Browse files
committed
pytime.c: rename pygettimeofday_new() to pygettimeofday()
I forgot to rename it in my previous refactoring of pytime.c.
1 parent d2f6974 commit c379ade

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/pytime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts)
449449
#endif
450450

451451
static int
452-
pygettimeofday_new(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
452+
pygettimeofday(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
453453
{
454454
#ifdef MS_WINDOWS
455455
FILETIME system_time;
@@ -541,7 +541,7 @@ _PyTime_t
541541
_PyTime_GetSystemClock(void)
542542
{
543543
_PyTime_t t;
544-
if (pygettimeofday_new(&t, NULL, 0) < 0) {
544+
if (pygettimeofday(&t, NULL, 0) < 0) {
545545
/* should not happen, _PyTime_Init() checked the clock at startup */
546546
assert(0);
547547

@@ -554,7 +554,7 @@ _PyTime_GetSystemClock(void)
554554
int
555555
_PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
556556
{
557-
return pygettimeofday_new(t, info, 1);
557+
return pygettimeofday(t, info, 1);
558558
}
559559

560560

0 commit comments

Comments
 (0)