Commit 0dcd1d1b authored by Jiri Popelka's avatar Jiri Popelka

plipconfig man page and usage output fixes

parent 81814dc2
...@@ -2,9 +2,17 @@ ...@@ -2,9 +2,17 @@
.SH NAME .SH NAME
plipconfig \- fine tune PLIP device parameters plipconfig \- fine tune PLIP device parameters
.SH SYNOPSIS .SH SYNOPSIS
.B "plipconfig interface" .B plipconfig interface
.RB [ nibble
.IR NN ]
.RB [ trigger
.IR NN ]
.br .br
.B "plipconfig interface [nibble NN] [trigger NN] [unit NN]" .B plipconfig
.RB [ \-V ]
.RB [ \-\-version ]
.RB [ \-h ]
.RB [ \-\-help ]
.SH DESCRIPTION .SH DESCRIPTION
.B Plipconfig .B Plipconfig
is used to (hopefully) improve PLIP performance by changing the default is used to (hopefully) improve PLIP performance by changing the default
......
...@@ -43,9 +43,6 @@ ...@@ -43,9 +43,6 @@
#include "net-support.h" #include "net-support.h"
#include "version.h" #include "version.h"
int opt_a = 0;
int opt_i = 0;
int opt_v = 0;
int skfd = -1; int skfd = -1;
struct ifreq ifr; struct ifreq ifr;
...@@ -63,9 +60,9 @@ static void version(void) ...@@ -63,9 +60,9 @@ static void version(void)
void usage(void) void usage(void)
{ {
fprintf(stderr, _("Usage: plipconfig [-a] [-i] [-v] interface\n")); fprintf(stderr, _("Usage: plipconfig interface [nibble NN] [trigger NN]\n"));
fprintf(stderr, _(" [nibble NN] [trigger NN]\n"));
fprintf(stderr, _(" plipconfig -V | --version\n")); fprintf(stderr, _(" plipconfig -V | --version\n"));
fprintf(stderr, _(" plipconfig -h | --help\n"));
exit(-1); exit(-1);
} }
...@@ -93,12 +90,10 @@ int main(int argc, char **argv) ...@@ -93,12 +90,10 @@ int main(int argc, char **argv)
argc--; argc--;
argv++; argv++;
while (argv[0] && *argv[0] == '-') { while (argv[0] && *argv[0] == '-') {
if (!strcmp(*argv, "-a"))
opt_a = 1;
if (!strcmp(*argv, "-v"))
opt_v = 1;
if (!strcmp(*argv, "-V") || !strcmp(*argv, "--version")) if (!strcmp(*argv, "-V") || !strcmp(*argv, "--version"))
version(); version();
else
usage();
argv++; argv++;
argc--; argc--;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment