* lib/sgroupio.c: Avoid assignments in comparisons.

* lib/sgroupio.c: Add brackets.
	* lib/sgroupio.c: Avoid implicit conversion of pointers / integers to booleans.
	* lib/sgroupio.c: The changed, isopen, locked, and readonly fields of the db are booleans.
	* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
	* lib/sgroupio.h: Add protection against multiple inclusions.
This commit is contained in:
nekral-guest 2008-05-26 08:43:50 +00:00
parent 383ea561f8
commit d264017684
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgroupio.c: Avoid assignments in comparisons.
* lib/sgroupio.c: Add brackets.
* lib/sgroupio.c: Avoid implicit conversion of pointers / integers
to booleans.
* lib/sgroupio.c: The changed, isopen, locked, and readonly fields
of the db are booleans.
* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
* lib/sgroupio.h: Add protection against multiple inclusions.
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/gshadow.c: nis_used and nis_bound are booleans.

View File

@ -31,8 +31,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id$ */
#ifndef _SGROUPIO_H
#define _SGROUPIO_H
extern int sgr_close (void);
extern int sgr_file_present (void);
extern bool sgr_file_present (void);
extern const struct sgrp *sgr_locate (const char *);
extern int sgr_lock (void);
extern int sgr_name (const char *);
@ -44,3 +48,4 @@ extern int sgr_unlock (void);
extern int sgr_update (const struct sgrp *);
extern int sgr_sort (void);
#endif