From d6283b84c8ab6aec059c226e1c3dec4d462093e0 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Wed, 9 May 2001 18:48:26 +0000 Subject: Minor fiddling related to SF patch 416251 2.1c1 mmapmodule: unused vrbl cleanup --- Modules/mmapmodule.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index c48278f..dd7ff6d 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -163,16 +163,13 @@ static PyObject * mmap_read_byte_method(mmap_object *self, PyObject *args) { - char value; - char *where; CHECK_VALID(NULL); if (!PyArg_ParseTuple(args, ":read_byte")) return NULL; if (self->pos < self->size) { - where = self->data + self->pos; - value = (char) *(where); + char value = self->data[self->pos]; self->pos += 1; - return Py_BuildValue("c", (char) *(where)); + return Py_BuildValue("c", value); } else { PyErr_SetString (PyExc_ValueError, "read byte out of range"); return NULL; -- cgit v0.12