summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-06-16 09:41:57 +0000
committerru <ru@FreeBSD.org>2000-06-16 09:41:57 +0000
commit646e21aa2b2417eb32528f1e19a0d85d6b217ae9 (patch)
treec2dbbd45c014c374d71106ae896c515307738b6f /sbin
parent4ec91666fac25fe075871c6194581e7842223b07 (diff)
downloadFreeBSD-src-646e21aa2b2417eb32528f1e19a0d85d6b217ae9.zip
FreeBSD-src-646e21aa2b2417eb32528f1e19a0d85d6b217ae9.tar.gz
Remove unused parameter.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/natd/natd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c
index a465ce2..39aeafc 100644
--- a/sbin/natd/natd.c
+++ b/sbin/natd/natd.c
@@ -86,7 +86,7 @@ static void SetAliasAddressFromIfName (const char *ifName);
static void InitiateShutdown (int);
static void Shutdown (int);
static void RefreshAddr (int);
-static void ParseOption (const char* option, const char* parms, int cmdLine);
+static void ParseOption (const char* option, const char* parms);
static void ReadConfigFile (const char* fileName);
static void SetupPortRedirect (const char* parms);
static void SetupProtoRedirect(const char* parms);
@@ -189,7 +189,7 @@ int main (int argc, char** argv)
errx (1, "both input and output ports are required");
if (inPort == 0 && outPort == 0 && inOutPort == 0)
- ParseOption ("port", DEFAULT_SERVICE, 0);
+ ParseOption ("port", DEFAULT_SERVICE);
/*
* Check if ignored packets should be dropped.
@@ -443,7 +443,7 @@ static void ParseArgs (int argc, char** argv)
if (argv[arg + 1][0] == '-')
break;
- if (len) {
+ if (len) {
strncat (parmBuf, " ", sizeof(parmBuf) - (len + 1));
len += strlen(parmBuf + len);
}
@@ -454,7 +454,7 @@ static void ParseArgs (int argc, char** argv)
}
- ParseOption (opt + 1, (len ? parmBuf : NULL), 1);
+ ParseOption (opt + 1, (len ? parmBuf : NULL));
}
}
@@ -1092,7 +1092,7 @@ static struct OptionInfo optionTable[] = {
};
-static void ParseOption (const char* option, const char* parms, int cmdLine)
+static void ParseOption (const char* option, const char* parms)
{
int i;
struct OptionInfo* info;
@@ -1326,7 +1326,7 @@ void ReadConfigFile (const char* fileName)
while (*ptr && isspace (*ptr))
++ptr;
- ParseOption (option, *ptr ? ptr : NULL, 0);
+ ParseOption (option, *ptr ? ptr : NULL);
}
fclose (file);
OpenPOWER on IntegriCloud