From acba134aaeb10c6bb29b5ef3e450b6fb782be43d Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 23 Nov 2007 20:11:00 +0000 Subject: [PATCH] Added prototype for getlong. --- ChangeLog | 4 ++-- lib/prototypes.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8aa9248..8ec1f31c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,8 +3,8 @@ * src/chpasswd.c: Added crypt method: NONE. * src/chpasswd.c: Added --sha-rounds to the usage(). * libmisc/Makefile.am, libmisc/getlong.c, src/chgpasswd.c, - src/chpasswd.c: New getlong function. Replace chpasswd's and - chgpasswd's getnumber. + src/chpasswd.c, lib/prototypes.h: New getlong function. Replace + chpasswd's and chgpasswd's getnumber. 2007-11-23 Nicolas François diff --git a/lib/prototypes.h b/lib/prototypes.h index 86c4a7c8..f88f3db3 100644 --- a/lib/prototypes.h +++ b/lib/prototypes.h @@ -70,6 +70,9 @@ extern void sanitize_env (void); extern void change_field (char *, size_t, const char *); extern int valid_field (const char *, const char *); +/* getlong.c */ +extern int getlong(const char *numstr, long int *result); + /* fputsx.c */ extern char *fgetsx (char *, int, FILE *); extern int fputsx (const char *, FILE *);