]> granicus.if.org Git - shadow/commitdiff
* lib/prototypes.h: Add the getrange() prototype.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 14 Jun 2008 21:11:19 +0000 (21:11 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 14 Jun 2008 21:11:19 +0000 (21:11 +0000)
* 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).

ChangeLog
lib/prototypes.h

index 5d0307287e3797ddd44cdc41e1c1adde5bd75f61..24b5ae18ee4617a36b60ab9278f7dc79335fc885 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index f4651e7675a4b87e47dff3090ebed7448b2c6a3a..c4aacfc3264007ddd5c168f814d7bd52ac6d1261 100644 (file)
@@ -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);