summaryrefslogtreecommitdiffstats
path: root/usr.sbin/stallion
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-01-12 08:00:32 +0000
committercharnier <charnier@FreeBSD.org>1998-01-12 08:00:32 +0000
commitddacedaebf5677ac88fff90fd5b9cbe5774bcadd (patch)
tree52f01cc7ac90d0c20d73c5792b125f5332fcb6c0 /usr.sbin/stallion
parent7946b36f3e9299df5086b267097962dfdd21ecfb (diff)
downloadFreeBSD-src-ddacedaebf5677ac88fff90fd5b9cbe5774bcadd.zip
FreeBSD-src-ddacedaebf5677ac88fff90fd5b9cbe5774bcadd.tar.gz
Remove optind (getopt() already knows about it). Move -d flag to -c according
to man page.
Diffstat (limited to 'usr.sbin/stallion')
-rw-r--r--usr.sbin/stallion/stlload/stlload.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/stallion/stlload/stlload.c b/usr.sbin/stallion/stlload/stlload.c
index 5e8df3e..283dcd7 100644
--- a/usr.sbin/stallion/stlload/stlload.c
+++ b/usr.sbin/stallion/stlload/stlload.c
@@ -38,7 +38,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: stlload.c,v 1.7 1997/10/20 12:51:29 charnier Exp $";
#endif /* not lint */
#include <err.h>
@@ -426,11 +426,9 @@ int download()
void main(int argc, char *argv[])
{
struct stat statinfo;
- int optind, c;
+ int c;
- optind = 0;
-
- while ((c = getopt(argc, argv, "hvVRB:i:b:d:t:r:")) != -1) {
+ while ((c = getopt(argc, argv, "hvVRB:i:b:c:t:r:")) != -1) {
switch (c) {
case 'V':
printf("stlload version %s\n", version);
@@ -454,7 +452,7 @@ void main(int argc, char *argv[])
case 'b':
brdnr = atoi(optarg);
break;
- case 'd':
+ case 'c':
memdevice = optarg;
break;
case 't':
OpenPOWER on IntegriCloud