* lib/pwio.c: The changed, isopen, locked, and readonly fields of the db are booleans.
+2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/pwio.h: Add protection against multiple inclusions.
+ * lib/pwio.c: The changed, isopen, locked, and readonly fields
+ of the db are booleans.
+
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
NULL, /* head */
NULL, /* tail */
NULL, /* cursor */
- 0, /* changed */
- 0, /* isopen */
- 0, /* locked */
- 0 /* readonly */
+ false, /* changed */
+ false, /* isopen */
+ false, /* locked */
+ false /* readonly */
};
int pw_name (const char *filename)
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/* $Id$ */
+#ifndef _PWIO_H
+#define _PWIO_H
+
#include <pwd.h>
extern int pw_close (void);
extern const struct passwd *pw_locate (const char *);
extern int pw_update (const struct passwd *);
extern int pw_sort (void);
+#endif