diff options
author | Tim Potter <tpot@samba.org> | 2002-05-14 02:37:47 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-05-14 02:37:47 +0000 |
commit | 18aeadc591b69bbbd874b7285ecaed50ff587e68 (patch) | |
tree | cfda265d822a3f85316e259a912a97f16dce8097 /source/python/py_winreg.c | |
parent | 5c58b4290dbc364f3b2d6593fd0425fd50160993 (diff) | |
download | samba-18aeadc591b69bbbd874b7285ecaed50ff587e68.tar.gz samba-18aeadc591b69bbbd874b7285ecaed50ff587e68.tar.xz samba-18aeadc591b69bbbd874b7285ecaed50ff587e68.zip |
General cleanup of compiler warnings etc.
Diffstat (limited to 'source/python/py_winreg.c')
-rw-r--r-- | source/python/py_winreg.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/python/py_winreg.c b/source/python/py_winreg.c index 105ad25db2b..ce27f5c533b 100644 --- a/source/python/py_winreg.c +++ b/source/python/py_winreg.c @@ -18,13 +18,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "includes.h" -#include "Python.h" +#include "python/py_winreg.h" -struct spoolss_const { +static struct const_vals { char *name; uint32 value; -} spoolss_const_vals[] = { +} module_const_vals[] = { /* Registry value types */ @@ -46,10 +45,10 @@ struct spoolss_const { static void const_init(PyObject *dict) { - struct spoolss_const *tmp; + struct const_vals *tmp; PyObject *obj; - for (tmp = spoolss_const_vals; tmp->name; tmp++) { + for (tmp = module_const_vals; tmp->name; tmp++) { obj = PyInt_FromLong(tmp->value); PyDict_SetItemString(dict, tmp->name, obj); Py_DECREF(obj); |