From 49464ac3690f1a89de335d99b64c7e846ca6fcd1 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 26 Feb 1999 11:03:34 +0000 Subject: [PATCH] export readable() from options.c so auth.c can use it --- pppd/options.c | 5 ++--- pppd/pppd.h | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pppd/options.c b/pppd/options.c index 346430d..b2c7b58 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: options.c,v 1.45 1999/01/20 00:00:35 paulus Exp $"; +static char rcsid[] = "$Id: options.c,v 1.46 1999/02/26 11:03:34 paulus Exp $"; #endif #include @@ -133,7 +133,6 @@ static int setactivefilter __P((char **)); static option_t *find_option __P((char *name)); static int process_option __P((option_t *, char **)); static int n_arguments __P((option_t *)); -static int readable __P((int fd)); /* * Valid arguments. @@ -685,7 +684,7 @@ option_error __V((char *fmt, ...)) /* * readable - check if a file is readable by the real user. */ -static int +int readable(fd) int fd; { diff --git a/pppd/pppd.h b/pppd/pppd.h index 6e2ef37..8029e40 100644 --- a/pppd/pppd.h +++ b/pppd/pppd.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: pppd.h,v 1.24 1999/01/20 00:01:00 paulus Exp $ + * $Id: pppd.h,v 1.25 1999/02/26 11:03:34 paulus Exp $ */ /* @@ -370,6 +370,7 @@ int getword __P((FILE *f, char *word, int *newlinep, char *filename)); /* Read a word from a file */ void option_error __P((char *fmt, ...)); /* Print an error message about an option */ +int readable __P((int fd)); /* Is fd readable by real user? */ int number_option __P((char *, u_int32_t *, int)); /* Parse a numerical option */ int int_option __P((char *, int *)); -- 2.39.2