From d4fcbf384bd99ca05953cc84949568b495221994 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 17 Oct 2024 18:15:55 +0300 Subject: [PATCH] Apply style suggestions. --- Modules/timemodule.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index e8028b5ca59e3e..b9d114ada0dfcd 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -776,9 +776,9 @@ the C library strftime function.\n" #endif static PyObject * -strftime1(time_char **outbuf, size_t *bufsize, - time_char *format, size_t fmtlen, - struct tm *tm) +time_strftime1(time_char **outbuf, size_t *bufsize, + time_char *format, size_t fmtlen, + struct tm *tm) { size_t buflen; #if defined(MS_WINDOWS) && !defined(HAVE_WCSFTIME) @@ -823,7 +823,7 @@ strftime1(time_char **outbuf, size_t *bufsize, return NULL; } *outbuf = (time_char *)PyMem_Realloc(*outbuf, - *bufsize*sizeof(time_char)); + *bufsize*sizeof(time_char)); if (*outbuf == NULL) { PyErr_NoMemory(); return NULL; @@ -932,7 +932,8 @@ time_strftime(PyObject *module, PyObject *args) } if (fmtlen) { format[fmtlen] = 0; - PyObject *unicode = strftime1(&outbuf, &bufsize, format, fmtlen, &buf); + PyObject *unicode = time_strftime1(&outbuf, &bufsize, + format, fmtlen, &buf); if (unicode == NULL) { goto error; }