summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/edit.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-23 14:48:05 +0000
committerpeter <peter@FreeBSD.org>1997-05-23 14:48:05 +0000
commitfc35590c6dddf32e1fa855b541dc28a23965f90c (patch)
tree88868947cf42cf5dbb2fcd120a862bffb347b6e5 /contrib/cvs/src/edit.c
parent4f40fe8334ad5f056e1d9105f23fe7ac859c39ba (diff)
downloadFreeBSD-src-fc35590c6dddf32e1fa855b541dc28a23965f90c.zip
FreeBSD-src-fc35590c6dddf32e1fa855b541dc28a23965f90c.tar.gz
Import a slightly newer version of 1.9.9 (as at 970523) that has fixed a
few more memory leaks and cleaned up getopt usage. These were done shortly after the last one I imported. Very little has changed other than that. (except for some doc updates) Obtained from: cyclic.com
Diffstat (limited to 'contrib/cvs/src/edit.c')
-rw-r--r--contrib/cvs/src/edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/cvs/src/edit.c b/contrib/cvs/src/edit.c
index 8d3bbb1..33e9c61 100644
--- a/contrib/cvs/src/edit.c
+++ b/contrib/cvs/src/edit.c
@@ -60,7 +60,7 @@ watch_onoff (argc, argv)
int local = 0;
int err;
- optind = 1;
+ optind = 0;
while ((c = getopt (argc, argv, "+lR")) != -1)
{
switch (c)
@@ -356,7 +356,7 @@ edit (argc, argv)
setting_tedit = 0;
setting_tunedit = 0;
setting_tcommit = 0;
- optind = 1;
+ optind = 0;
while ((c = getopt (argc, argv, "+lRa:")) != -1)
{
switch (c)
@@ -491,7 +491,7 @@ unedit (argc, argv)
if (argc == -1)
usage (edit_usage);
- optind = 1;
+ optind = 0;
while ((c = getopt (argc, argv, "+lR")) != -1)
{
switch (c)
@@ -983,7 +983,7 @@ editors (argc, argv)
if (argc == -1)
usage (editors_usage);
- optind = 1;
+ optind = 0;
while ((c = getopt (argc, argv, "+lR")) != -1)
{
switch (c)
OpenPOWER on IntegriCloud