@@ -776,11 +776,7 @@ typecmd(int argc, char **argv)
}
STATIC int
-describe_command(out, command, path, verbose)
- struct output *out;
- char *command;
- const char *path;
- int verbose;
+describe_command(struct output *out, char *command, const char *path, int verbose)
{
struct cmdentry entry;
struct tblentry *cmdp;
@@ -882,9 +878,7 @@ out:
}
int
-commandcmd(argc, argv)
- int argc;
- char **argv;
+commandcmd(int argc, char **argv)
{
char *cmd;
int c;
@@ -244,9 +244,7 @@ close:
int
-killcmd(argc, argv)
- int argc;
- char **argv;
+killcmd(int argc, char **argv)
{
extern char *signal_names[];
int signo = -1;
@@ -361,8 +361,7 @@ initialize_signames ()
}
void
-write_signames (stream)
- FILE *stream;
+write_signames (FILE *stream)
{
register int i;
@@ -88,8 +88,7 @@ copyfunc(union node *n)
STATIC void
-calcsize(n)
- union node *n;
+calcsize(union node *n)
{
%CALCSIZE
}
@@ -97,8 +96,7 @@ calcsize(n)
STATIC void
-sizenodelist(lp)
- struct nodelist *lp;
+sizenodelist(struct nodelist *lp)
{
while (lp) {
funcblocksize += SHELL_ALIGN(sizeof(struct nodelist));
@@ -110,8 +108,7 @@ sizenodelist(lp)
STATIC union node *
-copynode(n)
- union node *n;
+copynode(union node *n)
{
union node *new;
@@ -121,8 +118,7 @@ copynode(n)
STATIC struct nodelist *
-copynodelist(lp)
- struct nodelist *lp;
+copynodelist(struct nodelist *lp)
{
struct nodelist *start;
struct nodelist **lpp;
@@ -143,8 +139,7 @@ copynodelist(lp)
STATIC char *
-nodesavestr(s)
- char *s;
+nodesavestr(char *s)
{
char *rtn = funcstring;
@@ -390,8 +390,7 @@ setcmd(int argc, char **argv)
void
-getoptsreset(value)
- const char *value;
+getoptsreset(const char *value)
{
shellparam.optind = number(value) ?: 1;
shellparam.optoff = -1;
@@ -283,16 +283,11 @@ ecreate:
STATIC void
#ifdef notyet
-dupredirect(redir, f, memory)
+dupredirect(union node *redir, int f, char memory[10])
#else
-dupredirect(redir, f)
+dupredirect(union node *redir, int f)
#endif
- union node *redir;
- int f;
-#ifdef notyet
- char memory[10];
-#endif
- {
+{
int fd = redir->nfile.fd;
int err = 0;