summaryrefslogtreecommitdiffstats
path: root/Modules/spwdmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-01-24 23:33:50 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-01-24 23:33:50 (GMT)
commit62679968beb32baa047044ef0cd044bb85320e12 (patch)
treefc202382318005cb03f3c6cf1e6d6a371f45ee1d /Modules/spwdmodule.c
parent93f18f6f7743d35517ae4974872db131b400f893 (diff)
downloadcpython-62679968beb32baa047044ef0cd044bb85320e12.zip
cpython-62679968beb32baa047044ef0cd044bb85320e12.tar.gz
cpython-62679968beb32baa047044ef0cd044bb85320e12.tar.bz2
Put docstring for getspall into same #ifdef block as function definition
Remove C++ (C99) style comments
Diffstat (limited to 'Modules/spwdmodule.c')
-rw-r--r--Modules/spwdmodule.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/spwdmodule.c b/Modules/spwdmodule.c
index 25e7405..36dd228 100644
--- a/Modules/spwdmodule.c
+++ b/Modules/spwdmodule.c
@@ -121,23 +121,21 @@ static PyObject* spwd_getspnam(PyObject *self, PyObject *args)
return mkspent(p);
}
+#endif /* HAVE_GETSPNAM */
+
+#ifdef HAVE_GETSPENT
+
PyDoc_STRVAR(spwd_getspall__doc__,
"getspall() -> list_of_entries\n\
Return a list of all available shadow password database entries, \
in arbitrary order.\n\
See spwd.__doc__ for more on shadow password database entries.");
-#endif /* HAVE_GETSPNAM */
-
-#ifdef HAVE_GETSPENT
-
static PyObject *
spwd_getspall(PyObject *self, PyObject *args)
{
PyObject *d;
struct spwd *p;
-// if (!PyArg_NoArgs(args))
-// return NULL;
if ((d = PyList_New(0)) == NULL)
return NULL;
setspent();