Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
62679968
Commit
62679968
authored
Jan 24, 2005
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put docstring for getspall into same #ifdef block as function definition
Remove C++ (C99) style comments
parent
93f18f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Modules/spwdmodule.c
Modules/spwdmodule.c
+4
-6
No files found.
Modules/spwdmodule.c
View file @
62679968
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment