diff options
author | Jari Aalto <jari.aalto@cante.net> | 1999-02-19 17:11:39 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:52 +0000 |
commit | b72432fdcc59300c6fe7c9d6c8a31ad3447933f5 (patch) | |
tree | b9899162338c2ff3fd83a8aef8831cb119e85cd7 /lib/readline/examples | |
parent | bc4cd23ce958feda898c618215f94d8a4e8f4ffa (diff) | |
download | android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.gz android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.bz2 android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.zip |
Imported from ../bash-2.03.tar.gz.
Diffstat (limited to 'lib/readline/examples')
-rw-r--r-- | lib/readline/examples/rl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/readline/examples/rl.c b/lib/readline/examples/rl.c index 6c2f343..17a6343 100644 --- a/lib/readline/examples/rl.c +++ b/lib/readline/examples/rl.c @@ -12,7 +12,7 @@ #define READLINE_LIBRARY #if defined (HAVE_CONFIG_H) -#include <config.h> +# include <config.h> #endif #include <stdio.h> @@ -24,7 +24,9 @@ extern int optind; extern char *optarg; +#if !defined (strchr) && !defined (__STDC__) extern char *strrchr(); +#endif static char *progname; static char *deftext; @@ -40,6 +42,7 @@ set_deftext () } } +static void usage() { fprintf (stderr, "%s: usage: %s [-p prompt] [-u unit] [-d default]\n", @@ -52,7 +55,7 @@ main (argc, argv) { char *temp, *prompt; struct stat sb; - int done, opt, fd; + int opt, fd; FILE *ifp; progname = strrchr(argv[0], '/'); |