summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-07 03:39:22 +0000
committerTim Potter <tpot@samba.org>2003-01-07 03:39:22 +0000
commit6d5724f93b60134d555c82fddcadf4d6500a8731 (patch)
treeb1c965849696f9d3c1da7217018328904c07c483 /source3
parent186bb579f599561b9ac5df5b1cf2ff2e58c900e2 (diff)
downloadsamba-6d5724f93b60134d555c82fddcadf4d6500a8731.tar.gz
samba-6d5724f93b60134d555c82fddcadf4d6500a8731.tar.bz2
samba-6d5724f93b60134d555c82fddcadf4d6500a8731.zip
Rename a local variable to avoid a warning.
(This used to be commit 232116d2db9f24d64b3fa7a6e11191599590107a)
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_spoolss_printers.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/python/py_spoolss_printers.c b/source3/python/py_spoolss_printers.c
index 2076bd76cf..d011681acc 100644
--- a/source3/python/py_spoolss_printers.c
+++ b/source3/python/py_spoolss_printers.c
@@ -353,9 +353,9 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
for (i = 0; i < num_printers; i++) {
PyObject *value;
- fstring name;
+ fstring s;
- rpcstr_pull(name, ctr.printers_0[i].printername.buffer,
+ rpcstr_pull(s, ctr.printers_0[i].printername.buffer,
sizeof(fstring), -1, STR_TERMINATE);
py_from_PRINTER_INFO_0(&value, &ctr.printers_0[i]);
@@ -363,7 +363,7 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
PyDict_SetItemString(
value, "level", PyInt_FromLong(0));
- PyDict_SetItemString(result, name, value);
+ PyDict_SetItemString(result, s, value);
}
break;
@@ -372,9 +372,9 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
for(i = 0; i < num_printers; i++) {
PyObject *value;
- fstring name;
+ fstring s;
- rpcstr_pull(name, ctr.printers_1[i].name.buffer,
+ rpcstr_pull(s, ctr.printers_1[i].name.buffer,
sizeof(fstring), -1, STR_TERMINATE);
py_from_PRINTER_INFO_1(&value, &ctr.printers_1[i]);
@@ -382,7 +382,7 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
PyDict_SetItemString(
value, "level", PyInt_FromLong(1));
- PyDict_SetItemString(result, name, value);
+ PyDict_SetItemString(result, s, value);
}
break;
@@ -391,9 +391,9 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
for(i = 0; i < num_printers; i++) {
PyObject *value;
- fstring name;
+ fstring s;
- rpcstr_pull(name, ctr.printers_2[i].printername.buffer,
+ rpcstr_pull(s, ctr.printers_2[i].printername.buffer,
sizeof(fstring), -1, STR_TERMINATE);
py_from_PRINTER_INFO_2(&value, &ctr.printers_2[i]);
@@ -401,7 +401,7 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
PyDict_SetItemString(
value, "level", PyInt_FromLong(2));
- PyDict_SetItemString(result, name, value);
+ PyDict_SetItemString(result, s, value);
}
break;