summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-07-10 13:25:11 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:07 +0100
commita16991aae18b1d286ad6bb24ad0d96d49fcf5717 (patch)
tree98b9c876ab8fcbb6e167538fb6eefb059e79340d
parentdc6c6af3b304a8ee8d6f58ab2b5b8311e0512c37 (diff)
remove some genuinely unused arguments
change names of some others to ignore
-rw-r--r--fn.c4
-rw-r--r--footobar.c10
-rw-r--r--var.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/fn.c b/fn.c
index e6fcaab..f01a574 100644
--- a/fn.c
+++ b/fn.c
@@ -133,7 +133,7 @@ static void fn_handler(int s) {
/* A dud signal handler for SIGQUIT and SIGTERM */
-static void dud_handler(int s) {
+static void dud_handler(int ignore) {
}
/*
@@ -189,7 +189,7 @@ extern Node *fnlookup(char *name) {
return look->def;
if (look->extdef == NULL) /* function was set to null, e.g., fn foo {} */
return &null;
- ret = parse_fn(name, look->extdef);
+ ret = parse_fn(look->extdef);
if (ret == NULL) {
efree(look->extdef);
look->extdef = NULL;
diff --git a/footobar.c b/footobar.c
index 27955ba..43a44d9 100644
--- a/footobar.c
+++ b/footobar.c
@@ -39,7 +39,7 @@ static bool Dconv(Format *f, int ignore) {
/* defaultfd -- return the default fd for a given redirection operation */
-extern int defaultfd(int op) {
+static int defaultfd(int op) {
return (op == rCreate || op == rAppend) ? 1 : 0;
}
@@ -221,7 +221,7 @@ extern char *get_name(char *s) {
#define skipleft(p) do --p; while (*p != '\0' && *p != '\001');
-extern List *parse_var(char *name, char *extdef) {
+extern List *parse_var(char *extdef) {
char *endp, *realend, *sepp;
List *tailp, *new;
@@ -257,7 +257,7 @@ extern List *parse_var(char *name, char *extdef) {
#define PREFIX "fn x"
#define PRELEN conststrlen(PREFIX)
-extern Node *parse_fn(char *name, char *extdef) {
+extern Node *parse_fn(char *extdef) {
Node *def;
char *s, old[PRELEN];
if ((s = strchr(extdef, '=')) == NULL)
@@ -269,7 +269,7 @@ extern Node *parse_fn(char *name, char *extdef) {
return (def == NULL || def->type != nNewfn) ? NULL : def->u[1].p;
}
-static bool Aconv(Format *f, int c) {
+static bool Aconv(Format *f, int ignore) {
char **a = va_arg(f->args, char **);
if (*a != NULL) {
fmtcat(f, *a);
@@ -279,7 +279,7 @@ static bool Aconv(Format *f, int c) {
return FALSE;
}
-static bool Lconv(Format *f, int c) {
+static bool Lconv(Format *f, int ignore) {
List *l = va_arg(f->args, List *);
char *sep = va_arg(f->args, char *);
char *fmt = (f->flags & FMT_leftside) ? "%s%s" : "%-S%s";
diff --git a/var.c b/var.c
index 4e7f9a3..8ef453b 100644
--- a/var.c
+++ b/var.c
@@ -83,7 +83,7 @@ extern List *varlookup(char *name) {
return look->def;
if (look->extdef == NULL)
return NULL; /* variable was set to null, e.g., a=() echo foo */
- ret = parse_var(name, look->extdef);
+ ret = parse_var(look->extdef);
if (ret == NULL) {
look->extdef = NULL;
return NULL;