* 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:
parent
4ac21ca652
commit
0afd6a8312
@ -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>
|
||||
|
||||
* lib/getdef.c: Fix the getdef_ulong() prototype.
|
||||
|
@ -97,7 +97,7 @@ extern void sanitize_env (void);
|
||||
|
||||
/* fields.c */
|
||||
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 */
|
||||
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 */
|
||||
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 */
|
||||
extern char *fgetsx (char *, int, 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 *);
|
||||
|
||||
/* valid.c */
|
||||
extern int valid (const char *, const struct passwd *);
|
||||
extern bool valid (const char *, const struct passwd *);
|
||||
|
||||
/* xmalloc.c */
|
||||
extern char *xmalloc (size_t);
|
||||
|
Loading…
Reference in New Issue
Block a user