summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-04-12 21:40:56 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-04-12 21:40:56 (GMT)
commitd238cb81450971a53b3ab233ee99cc57c9021ef1 (patch)
tree60d7fba0cec91bac105961ff38feb7f800034f12 /Modules
parent7179220b57faca4606430b97847308b34f45f623 (diff)
downloadcpython-d238cb81450971a53b3ab233ee99cc57c9021ef1.zip
cpython-d238cb81450971a53b3ab233ee99cc57c9021ef1.tar.gz
cpython-d238cb81450971a53b3ab233ee99cc57c9021ef1.tar.bz2
Removed unused variable.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 716bf7d..99efa56 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5539,7 +5539,6 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table,
size_t hi = tablesize;
int cmp;
const char *confname;
- Py_ssize_t namelen;
if (!PyUnicode_Check(arg)) {
PyErr_SetString(PyExc_TypeError,
"configuration names must be strings or integers");
@@ -5548,7 +5547,6 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table,
confname = PyUnicode_AsString(arg);
if (confname == NULL)
return 0;
- namelen = strlen(confname);
while (lo < hi) {
mid = (lo + hi) / 2;
cmp = strcmp(confname, table[mid].name);