Stylistic nit:

main()'s argv argument is char*[], and functions that may inherit that arg
should use char*[] as well.
This commit is contained in:
Juli Mallett 2002-06-22 12:59:40 +00:00
parent 5058dcb497
commit 1926d4aaad

View File

@ -69,8 +69,8 @@ __FBSDID("$FreeBSD$");
#include "pathnames.h" #include "pathnames.h"
static void parse_input(int, char **); static void parse_input(int, char *[]);
static void prerun(int, char **); static void prerun(int, char *[]);
static int prompt(void); static int prompt(void);
static void run(char **); static void run(char **);
static void usage(void); static void usage(void);
@ -86,7 +86,7 @@ static int cnt, Iflag, jfound, Lflag, wasquoted, xflag;
extern char *environ[]; extern char *environ[];
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
long arg_max; long arg_max;
int ch, Jflag, nargs, nflag, nline; int ch, Jflag, nargs, nflag, nline;
@ -238,7 +238,7 @@ main(int argc, char **argv)
} }
static void static void
parse_input(int argc, char **argv) parse_input(int argc, char *argv[])
{ {
int ch, foundeof; int ch, foundeof;
char **avj; char **avj;
@ -387,7 +387,7 @@ addch: if (p < ebp) {
* and then call run(). * and then call run().
*/ */
static void static void
prerun(int argc, char **argv) prerun(int argc, char *argv[])
{ {
char **tmp, **tmp2, **avj; char **tmp, **tmp2, **avj;
int repls; int repls;