* lib/shadowio.h: Add protection against multiple inclusions.
+2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
+ * lib/shadowio.h: Add protection against multiple inclusions.
+
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgroupio.c: Avoid assignments in comparisons.
return commonio_setname (&shadow_db, filename);
}
-int spw_file_present (void)
+bool spw_file_present (void)
{
return commonio_present (&shadow_db);
}
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/* $Id$ */
+#ifndef _SHADOWIO_H
+#define _SHADOWIO_H
+
+#include "defines.h"
+
extern int spw_close (void);
-extern int spw_file_present (void);
+extern bool spw_file_present (void);
extern const struct spwd *spw_locate (const char *);
extern int spw_lock (void);
extern int spw_name (const char *);
extern int spw_update (const struct spwd *);
extern int spw_sort (void);
+#endif