Module Name: src
Committed By: rillig
Date: Sun Oct 16 16:26:35 UTC 2022
Modified Files:
src/sbin/mount_cd9660: mount_cd9660.c
Log Message:
mount_cd9660: remove unhandled option -i from getopt
Found by lint. While here, fix the other lint warning as well, as lint
still doesn't know that exit(3) doesn't return normally.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sbin/mount_cd9660/mount_cd9660.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/mount_cd9660/mount_cd9660.c
diff -u src/sbin/mount_cd9660/mount_cd9660.c:1.32 src/sbin/mount_cd9660/mount_cd9660.c:1.33
--- src/sbin/mount_cd9660/mount_cd9660.c:1.32 Mon Aug 29 14:35:00 2011
+++ src/sbin/mount_cd9660/mount_cd9660.c Sun Oct 16 16:26:35 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_cd9660.c,v 1.32 2011/08/29 14:35:00 joerg Exp $ */
+/* $NetBSD: mount_cd9660.c,v 1.33 2022/10/16 16:26:35 rillig Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 19
#if 0
static char sccsid[] = "@(#)mount_cd9660.c 8.7 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: mount_cd9660.c,v 1.32 2011/08/29 14:35:00 joerg Exp $");
+__RCSID("$NetBSD: mount_cd9660.c,v 1.33 2022/10/16 16:26:35 rillig Exp $");
#endif
#endif /* not lint */
@@ -106,7 +106,7 @@ mount_cd9660_parseargs(int argc, char **
memset(args, 0, sizeof(*args));
*mntflags = opts = 0;
optind = optreset = 1;
- while ((ch = getopt(argc, argv, "egijo:r")) != -1)
+ while ((ch = getopt(argc, argv, "egjo:r")) != -1)
switch (ch) {
case 'e':
/* obsolete, retained for compatibility only, use
@@ -180,6 +180,7 @@ mount_cd9660(int argc, char **argv)
}
exit(0);
+ /* NOTREACHED */
}
static void