summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-25 12:56:38 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-25 12:56:38 (GMT)
commit334fb8985bc126f62af65669150c30787eabddd9 (patch)
tree114a52660cda84eb69f1fe8c24d0df7458dbe875 /Modules/timemodule.c
parentbf680266da23b0b95a03d2b7ea5da493d341a562 (diff)
downloadcpython-334fb8985bc126f62af65669150c30787eabddd9.zip
cpython-334fb8985bc126f62af65669150c30787eabddd9.tar.gz
cpython-334fb8985bc126f62af65669150c30787eabddd9.tar.bz2
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 18223b2..4d2089c 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -293,7 +293,7 @@ static int
gettmarg(PyObject *args, struct tm *p)
{
int y;
- memset((ANY *) p, '\0', sizeof(struct tm));
+ memset((void *) p, '\0', sizeof(struct tm));
if (!PyArg_Parse(args, "(iiiiiiiii)",
&y,
@@ -343,7 +343,7 @@ time_strftime(PyObject *self, PyObject *args)
char *outbuf = 0;
size_t i;
- memset((ANY *) &buf, '\0', sizeof(buf));
+ memset((void *) &buf, '\0', sizeof(buf));
if (!PyArg_ParseTuple(args, "sO:strftime", &fmt, &tup)
|| !gettmarg(tup, &buf))
@@ -398,7 +398,7 @@ time_strptime(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "s|s:strptime", &buf, &fmt))
return NULL;
- memset((ANY *) &tm, '\0', sizeof(tm));
+ memset((void *) &tm, '\0', sizeof(tm));
s = strptime(buf, fmt, &tm);
if (s == NULL) {
PyErr_SetString(PyExc_ValueError, "format mismatch");