summaryrefslogtreecommitdiffstats
path: root/Modules/_hotshot.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-13 07:19:01 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-13 07:19:01 (GMT)
commit7cbc0f552432520ceef38ed5d0daf766db453fa9 (patch)
treeba9913021c77f36192d59f86654d63a026626dd1 /Modules/_hotshot.c
parent3c6e4188ed32da96455fe12893d317751721ce48 (diff)
downloadcpython-7cbc0f552432520ceef38ed5d0daf766db453fa9.zip
cpython-7cbc0f552432520ceef38ed5d0daf766db453fa9.tar.gz
cpython-7cbc0f552432520ceef38ed5d0daf766db453fa9.tar.bz2
C++ compiler changes. casts, rename variables with reserved names.
Diffstat (limited to 'Modules/_hotshot.c')
-rw-r--r--Modules/_hotshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index d5b4cde..6a78fd2 100644
--- a/Modules/_hotshot.c
+++ b/Modules/_hotshot.c
@@ -308,7 +308,7 @@ unpack_string(LogReaderObject *self, PyObject **pvalue)
if ((err = unpack_packed_int(self, &len, 0)))
return err;
- buf = malloc(len);
+ buf = (char *)malloc(len);
for (i=0; i < len; i++) {
ch = fgetc(self->logfp);
buf[i] = ch;
@@ -1403,7 +1403,7 @@ get_version_string(void)
++rev;
while (rev[i] != ' ' && rev[i] != '\0')
++i;
- buffer = malloc(i + 1);
+ buffer = (char *)malloc(i + 1);
if (buffer != NULL) {
memmove(buffer, rev, i);
buffer[i] = '\0';