* lib/prototypes.h: Add the getrange() prototype.

* lib/prototypes.h: Fix the valid_field() prototype (does not
	return an bool).
	* lib/prototypes.h: Fix the valid() prototype (it does return a
	bool).
This commit is contained in:
nekral-guest 2008-06-14 21:11:19 +00:00
parent 4ac21ca652
commit 0afd6a8312
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Add the getrange() prototype.
* lib/prototypes.h: Fix the valid_field() prototype (does not
return an bool).
* lib/prototypes.h: Fix the valid() prototype (it does return a
bool).
2008-06-14 Nicolas François <nicolas.francois@centraliens.net> 2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* lib/getdef.c: Fix the getdef_ulong() prototype. * lib/getdef.c: Fix the getdef_ulong() prototype.

View File

@ -97,7 +97,7 @@ extern void sanitize_env (void);
/* fields.c */ /* fields.c */
extern void change_field (char *, size_t, const char *); extern void change_field (char *, size_t, const char *);
extern bool valid_field (const char *, const char *); extern int valid_field (const char *, const char *);
/* find_new_ids.c */ /* find_new_ids.c */
extern int find_new_uid (bool sys_user, uid_t *uid, uid_t const *preferred_uid); extern int find_new_uid (bool sys_user, uid_t *uid, uid_t const *preferred_uid);
@ -106,6 +106,11 @@ extern int find_new_gid (bool sys_group, gid_t *gid, gid_t const *preferred_gid)
/* getlong.c */ /* getlong.c */
extern int getlong(const char *numstr, long int *result); extern int getlong(const char *numstr, long int *result);
/* getrange */
extern getrange(char *range,
unsigned long *min, bool *has_min,
unsigned long *max, bool *has_max);
/* fputsx.c */ /* fputsx.c */
extern char *fgetsx (char *, int, FILE *); extern char *fgetsx (char *, int, FILE *);
extern int fputsx (const char *, FILE *); extern int fputsx (const char *, FILE *);
@ -258,7 +263,7 @@ extern void checkutmp (bool picky);
extern void setutmp (const char *, const char *, const char *); extern void setutmp (const char *, const char *, const char *);
/* valid.c */ /* valid.c */
extern int valid (const char *, const struct passwd *); extern bool valid (const char *, const struct passwd *);
/* xmalloc.c */ /* xmalloc.c */
extern char *xmalloc (size_t); extern char *xmalloc (size_t);