summaryrefslogtreecommitdiffstats
path: root/bin/mv
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-02-19 05:51:13 +0000
committerpst <pst@FreeBSD.org>1996-02-19 05:51:13 +0000
commitcce07697bc92628b0bca5a9f51eed6ae5351a89f (patch)
tree17458a6f109b3f14019b48230ec42669411b4877 /bin/mv
parent0bdc6336c56937355c20f6c9cbd0289fa8b5e77c (diff)
downloadFreeBSD-src-cce07697bc92628b0bca5a9f51eed6ae5351a89f.zip
FreeBSD-src-cce07697bc92628b0bca5a9f51eed6ae5351a89f.tar.gz
-- is implemented in getopt(3)
-? is an unnecessary case statement and not useful
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 28da455..1d05ad9 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mv.c,v 1.3 1995/10/07 10:42:48 bde Exp $
+ * $Id: mv.c,v 1.5 1996/02/19 00:44:19 wosch Exp $
*/
#ifndef lint
@@ -79,7 +79,7 @@ main(argc, argv)
int ch;
char path[MAXPATHLEN + 1];
- while ((ch = getopt(argc, argv, "-if")) != EOF)
+ while ((ch = getopt(argc, argv, "if")) != EOF)
switch (ch) {
case 'i':
iflg = 1;
@@ -87,9 +87,6 @@ main(argc, argv)
case 'f':
fflg = 1;
break;
- case '-': /* Undocumented; for compatibility. */
- goto endarg;
- case '?':
default:
usage();
}
OpenPOWER on IntegriCloud