]> git.ozlabs.org Git - ppp.git/commitdiff
export readable() from options.c so auth.c can use it
authorPaul Mackerras <paulus@samba.org>
Fri, 26 Feb 1999 11:03:34 +0000 (11:03 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 26 Feb 1999 11:03:34 +0000 (11:03 +0000)
pppd/options.c
pppd/pppd.h

index 346430d454f0037d2450e444ba7865ad03c77147..b2c7b58574f0944cb090fd6e0123ee508d6476b0 100644 (file)
@@ -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 <ctype.h>
@@ -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;
 {
index 6e2ef37d91087b23256f91743ade411af806ab30..8029e400813d9f408aa108841e76c84fbe1fd2e5 100644 (file)
@@ -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 *));