-/* $OpenBSD: options.c,v 1.103 2019/11/15 20:34:17 naddy Exp $ */
+/* $OpenBSD: options.c,v 1.104 2022/12/04 23:50:45 cheloha Exp $ */
/* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */
/*-
*/
frmt = &(fsub[F_OCPIO]);
break;
- case '?':
default:
cpio_usage();
break;
-/* $OpenBSD: main.c,v 1.30 2021/10/23 11:22:49 mestre Exp $ */
+/* $OpenBSD: main.c,v 1.31 2022/12/04 23:50:45 cheloha Exp $ */
/* $NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $ */
/*
case 't':
Teleport = TRUE;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: dbtest.c,v 1.20 2022/11/10 12:38:57 anton Exp $ */
+/* $OpenBSD: dbtest.c,v 1.21 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */
/*-
case 's':
sflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: main.c,v 1.11 2020/02/14 19:17:34 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.12 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */
#include <stdio.h>
case 'x': /* Debugging. */
debug++;
break;
- case '?':
default:
errflg++;
break;
-/* $OpenBSD: switch.c,v 1.6 2018/05/21 10:14:50 bluhm Exp $ */
+/* $OpenBSD: switch.c,v 1.7 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
static __dead void
usage(void)
{
- fprintf(stderr, "usage: %s [-?] [-c count]\n", getprogname());
+ fprintf(stderr, "usage: %s [-c count]\n", getprogname());
fprintf(stderr, "count is number of theads, between 2 and 26\n");
exit(1);
}
long i;
const char *errstr;
- while ((ch = getopt(argc, argv, "c:?")) != -1) {
+ while ((ch = getopt(argc, argv, "c:")) != -1) {
switch (ch) {
case 'c':
count = strtonum(optarg, 2, 26, &errstr);
-/* $OpenBSD: fmt_test.c,v 1.18 2022/03/11 07:29:53 dtucker Exp $ */
+/* $OpenBSD: fmt_test.c,v 1.19 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Combined tests for fmt_scaled and scan_scaled.
break;
case 'h':
usage(0);
- case '?':
default:
usage(1);
}
-/* $OpenBSD: disklabel.c,v 1.245 2022/10/12 23:11:32 krw Exp $ */
+/* $OpenBSD: disklabel.c,v 1.246 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 1987, 1993
case 'v':
verbose = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: dmesg.c,v 1.32 2022/08/03 00:23:14 cheloha Exp $ */
+/* $OpenBSD: dmesg.c,v 1.33 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */
/*-
case 'N':
nlistf = optarg;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: dumpfs.c,v 1.36 2020/06/20 07:49:04 otto Exp $ */
+/* $OpenBSD: dumpfs.c,v 1.37 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 2002 Networks Associates Technology, Inc.
case 'm':
domarshal = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: growfs.c,v 1.54 2020/06/20 07:49:04 otto Exp $ */
+/* $OpenBSD: growfs.c,v 1.55 2022/12/04 23:50:46 cheloha Exp $ */
/*
* Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
* Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
case 'y':
ExpertFlag = 1;
break;
- case '?':
- /* FALLTHROUGH */
default:
usage();
}
-/* $OpenBSD: isakmpd.c,v 1.107 2018/01/15 09:54:48 mpi Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.108 2022/12/04 23:50:46 cheloha Exp $ */
/* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */
/*
verbose_logging = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: mount.c,v 1.75 2022/04/09 15:40:55 dv Exp $ */
+/* $OpenBSD: mount.c,v 1.76 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
if (!hasopt(options, "rw"))
options = catopt(options, "rw");
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: mount_cd9660.c,v 1.22 2019/06/28 13:32:44 deraadt Exp $ */
+/* $OpenBSD: mount_cd9660.c,v 1.23 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount_cd9660.c,v 1.3 1996/04/13 01:31:08 jtc Exp $ */
/*
errx(1, "session number is %s: %s", errstr,
optarg);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: mount_ext2fs.c,v 1.19 2019/06/28 13:32:44 deraadt Exp $ */
+/* $OpenBSD: mount_ext2fs.c,v 1.20 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
case 'o':
getmntopts(optarg, mopts, &mntflags);
break;
- case '?':
default:
ext2fs_usage();
}
-/* $OpenBSD: mount_ffs.c,v 1.25 2019/06/28 13:32:44 deraadt Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.26 2022/12/04 23:50:46 cheloha Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
case 'o':
getmntopts(optarg, mopts, &mntflags);
break;
- case '?':
default:
ffs_usage();
}
-/* $OpenBSD: mount_msdos.c,v 1.35 2022/08/20 07:03:24 tb Exp $ */
+/* $OpenBSD: mount_msdos.c,v 1.36 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */
/*
case 'o':
getmntopts(optarg, mopts, &mntflags);
break;
- case '?':
default:
usage();
break;
-/* $OpenBSD: mount_tmpfs.c,v 1.7 2018/07/11 07:03:03 martijn Exp $ */
+/* $OpenBSD: mount_tmpfs.c,v 1.8 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: mount_tmpfs.c,v 1.24 2008/08/05 20:57:45 pooka Exp $ */
/*
uidset = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: newfs.c,v 1.116 2022/11/19 08:02:11 sthen Exp $ */
+/* $OpenBSD: newfs.c,v 1.117 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */
/*
pop = optarg;
break;
#endif
- case '?':
default:
usage();
}
-/* $OpenBSD: newfs_ext2fs.c,v 1.28 2021/06/26 15:42:58 deraadt Exp $ */
+/* $OpenBSD: newfs_ext2fs.c,v 1.29 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: newfs_ext2fs.c,v 1.8 2009/03/02 10:38:13 tsutsui Exp $ */
/*
errx(EXIT_FAILURE,
"Volume name cannot be zero length");
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: savecore.c,v 1.64 2022/03/25 16:14:55 tb Exp $ */
+/* $OpenBSD: savecore.c,v 1.65 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
case 'z':
zcompress = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: scsi.c,v 1.31 2021/06/22 14:51:29 jmc Exp $ */
+/* $OpenBSD: scsi.c,v 1.32 2022/12/04 23:50:47 cheloha Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
case 'v':
verbose = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: ttyflags.c,v 1.16 2021/10/24 21:24:22 deraadt Exp $ */
+/* $OpenBSD: ttyflags.c,v 1.17 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: ttyflags.c,v 1.8 1996/04/09 05:20:30 cgd Exp $ */
/*
case 'v':
vflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: biff.c,v 1.18 2021/07/12 15:09:19 beck Exp $ */
+/* $OpenBSD: biff.c,v 1.19 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */
/*
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
- case '?':
default:
usage();
}
-/* $OpenBSD: cal.c,v 1.30 2015/10/09 01:37:06 deraadt Exp $ */
+/* $OpenBSD: cal.c,v 1.31 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */
/*
case 'y':
yflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: cap_mkdb.c,v 1.25 2020/09/15 07:41:38 kevlo Exp $ */
+/* $OpenBSD: cap_mkdb.c,v 1.26 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */
/*-
case 'v':
verbose = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: chpass.c,v 1.48 2021/10/24 21:24:16 deraadt Exp $ */
+/* $OpenBSD: chpass.c,v 1.49 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: chpass.c,v 1.8 1996/05/15 21:50:43 jtc Exp $ */
/*-
op = NEWSH;
arg = optarg;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: col.c,v 1.19 2015/10/09 01:37:06 deraadt Exp $ */
+/* $OpenBSD: col.c,v 1.20 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: col.c,v 1.7 1995/09/02 05:48:50 jtc Exp $ */
/*-
case 'x': /* do not compress spaces into tabs */
compress_spaces = 0;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: colrm.c,v 1.13 2016/10/27 12:53:54 schwarze Exp $ */
+/* $OpenBSD: colrm.c,v 1.14 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: colrm.c,v 1.4 1995/09/02 05:51:37 jtc Exp $ */
/*-
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
- case '?':
default:
usage();
}
-/* $OpenBSD: comm.c,v 1.10 2015/10/09 01:37:07 deraadt Exp $ */
+/* $OpenBSD: comm.c,v 1.11 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: comm.c,v 1.10 1995/09/05 19:57:43 jtc Exp $ */
/*
case 'f':
compare = strcasecmp;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: ctags.c,v 1.18 2015/10/09 01:37:07 deraadt Exp $ */
+/* $OpenBSD: ctags.c,v 1.19 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: ctags.c,v 1.4 1995/09/02 05:57:23 jtc Exp $ */
/*
case 'x':
xflag = 1;
break;
- case '?':
default:
goto usage;
}
-/* $OpenBSD: cut.c,v 1.26 2019/02/07 19:11:23 tobias Exp $ */
+/* $OpenBSD: cut.c,v 1.27 2022/12/04 23:50:47 cheloha Exp $ */
/* $NetBSD: cut.c,v 1.9 1995/09/02 05:59:23 jtc Exp $ */
/*
case 's':
sflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: du.c,v 1.32 2016/08/24 03:13:45 guenther Exp $ */
+/* $OpenBSD: du.c,v 1.33 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */
/*
case 'x':
ftsoptions |= FTS_XDEV;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: expand.c,v 1.14 2015/10/09 01:37:07 deraadt Exp $ */
+/* $OpenBSD: expand.c,v 1.15 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: expand.c,v 1.5 1995/09/02 06:19:46 jtc Exp $ */
/*
case 't':
getstops(optarg);
break;
- case '?':
default:
usage();
/* NOTREACHED */
-/* $OpenBSD: main.c,v 1.32 2021/10/24 21:24:16 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.33 2022/12/04 23:50:48 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
ftsoptions &= ~FTS_NOSTAT;
ftsoptions |= FTS_XDEV;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: finger.c,v 1.27 2018/04/26 12:42:51 guenther Exp $ */
+/* $OpenBSD: finger.c,v 1.28 2022/12/04 23:50:48 cheloha Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
case 'o':
oflag = 1; /* office info */
break;
- case '?':
default:
(void)fprintf(stderr,
"usage: %s [-hlMmops] [login ...]\n", __progname);
-/* $OpenBSD: gencat.c,v 1.20 2019/07/25 13:53:57 schwarze Exp $ */
+/* $OpenBSD: gencat.c,v 1.21 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: gencat.c,v 1.9 1998/10/09 17:00:56 itohy Exp $ */
/*-
while ((c = getopt(argc, argv, "")) != -1) {
switch (c) {
- case '?':
default:
usage();
/* NOTREACHED */
-/* $OpenBSD: getconf.c,v 1.22 2022/07/20 14:23:13 claudio Exp $ */
+/* $OpenBSD: getconf.c,v 1.23 2022/12/04 23:50:48 cheloha Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
if (! compilation_spec_valid(optarg))
errx(1, "%s: unknown specification", optarg);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: hexsyntax.c,v 1.13 2016/03/15 04:19:13 mmcc Exp $ */
+/* $OpenBSD: hexsyntax.c,v 1.14 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: hexsyntax.c,v 1.8 1998/04/08 23:48:57 jeremy Exp $ */
/*-
add("\"%07.7_Ax\n\"");
add("\"%07.7_ax \" 8/2 \" %04x \" \"\\n\"");
break;
- case '?':
+ default:
usage();
}
-/* $OpenBSD: id.c,v 1.28 2017/05/30 15:29:53 tedu Exp $ */
+/* $OpenBSD: id.c,v 1.29 2022/12/04 23:50:48 cheloha Exp $ */
/*-
* Copyright (c) 1991, 1993
case 'u':
uflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: join.c,v 1.33 2020/07/23 20:13:01 martijn Exp $ */
+/* $OpenBSD: join.c,v 1.34 2022/12/04 23:50:48 cheloha Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
if (*end)
errx(1, "illegal file number -- %s", optarg);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: lastcomm.c,v 1.30 2021/12/13 16:37:37 deraadt Exp $ */
+/* $OpenBSD: lastcomm.c,v 1.31 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */
/*
case 'f':
acctfile = optarg;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: logger.c,v 1.18 2019/06/17 00:23:03 guenther Exp $ */
+/* $OpenBSD: logger.c,v 1.19 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: logger.c,v 1.4 1994/12/22 06:27:00 jtc Exp $ */
/*
case 't': /* tag */
tag = optarg;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: look.c,v 1.26 2022/02/10 14:55:43 cheloha Exp $ */
+/* $OpenBSD: look.c,v 1.27 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: look.c,v 1.7 1995/08/31 22:41:02 jtc Exp $ */
/*-
case 't':
termchar = *optarg;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: main.c,v 1.87 2017/06/15 13:48:42 bcallah Exp $ */
+/* $OpenBSD: main.c,v 1.88 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */
/*-
case 'o':
trace_file(optarg);
break;
- case '?':
+ default:
usage();
}
-/* $OpenBSD: main.c,v 1.127 2020/01/13 15:41:53 espie Exp $ */
+/* $OpenBSD: main.c,v 1.128 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
touchFlag = true;
break;
default:
- case '?':
usage();
}
record_option(c, NULL);
-/* $OpenBSD: mesg.c,v 1.17 2021/07/12 15:09:20 beck Exp $ */
+/* $OpenBSD: mesg.c,v 1.18 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: mesg.c,v 1.4 1994/12/23 07:16:32 jtc Exp $ */
/*
while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
- case '?':
default:
goto usage;
}
-/* $OpenBSD: main.c,v 1.122 2022/09/08 13:18:47 kn Exp $ */
+/* $OpenBSD: main.c,v 1.123 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
errx(1, "interval is %s", errstr);
iflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: nfsstat.c,v 1.36 2016/08/27 04:07:42 guenther Exp $ */
+/* $OpenBSD: nfsstat.c,v 1.37 2022/12/04 23:50:49 cheloha Exp $ */
/* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */
/*
case 'c':
display = SHOW_CLIENT;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: nl.c,v 1.7 2019/04/21 01:08:46 deraadt Exp $ */
+/* $OpenBSD: nl.c,v 1.8 2022/12/04 23:50:49 cheloha Exp $ */
/* $NetBSD: nl.c,v 1.11 2011/08/16 12:00:46 christos Exp $ */
/*-
errx(EXIT_FAILURE, "width is %s: %s", errstr,
optarg);
break;
- case '?':
default:
usage();
/* NOTREACHED */
-/* $OpenBSD: nm.c,v 1.54 2019/03/03 16:07:39 schwarze Exp $ */
+/* $OpenBSD: nm.c,v 1.55 2022/12/04 23:50:49 cheloha Exp $ */
/* $NetBSD: nm.c,v 1.7 1996/01/14 23:04:03 pk Exp $ */
/*
usage();
}
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: paste.c,v 1.26 2018/08/04 19:19:37 schwarze Exp $ */
+/* $OpenBSD: paste.c,v 1.27 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
case 's':
seq = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: rdist.c,v 1.32 2021/06/22 20:19:28 jmc Exp $ */
+/* $OpenBSD: rdist.c,v 1.33 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
case 'i': FLAG_ON(options, DO_IGNLNKS); break;
case 'x': FLAG_ON(options, DO_NOEXEC); break;
- case '?':
default:
usage();
}
-/* $OpenBSD: rdistd.c,v 1.10 2015/02/08 23:40:34 deraadt Exp $ */
+/* $OpenBSD: rdistd.c,v 1.11 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
printf("%s\n", getversion());
exit(0);
- case '?':
default:
error("Bad command line option.");
usage();
-/* $OpenBSD: main.c,v 1.42 2021/01/31 14:23:05 naddy Exp $ */
+/* $OpenBSD: main.c,v 1.43 2022/12/04 23:50:49 cheloha Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
setvbuf(stdout, NULL, _IOLBF, 0);
break;
default:
- case '?':
(void)fprintf(stderr,
"usage: sed [-aEnru] [-i[extension]] command [file ...]\n"
" sed [-aEnru] [-e command] [-f command_file] [-i[extension]] [file ...]\n");
-/* $OpenBSD: ssh-keygen.c,v 1.460 2022/11/07 04:04:40 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.461 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
else
fatal("Unsupported moduli option %s", optarg);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: ssh-keyscan.c,v 1.147 2022/10/28 02:29:34 djm Exp $ */
+/* $OpenBSD: ssh-keyscan.c,v 1.148 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
*
case '6':
IPv4or6 = AF_INET6;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: sshd.c,v 1.592 2022/10/28 00:44:17 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.593 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
exit(1);
free(line);
break;
- case '?':
default:
usage();
break;
-/* $OpenBSD: tail.c,v 1.23 2021/12/23 23:23:42 jsg Exp $ */
+/* $OpenBSD: tail.c,v 1.24 2022/12/04 23:50:49 cheloha Exp $ */
/*-
* Copyright (c) 1991, 1993
case 'r':
rflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: main.c,v 1.36 2015/12/06 12:00:16 tobias Exp $ */
+/* $OpenBSD: main.c,v 1.37 2022/12/04 23:50:49 cheloha Exp $ */
/* $NetBSD: main.c,v 1.5 1996/02/28 21:04:05 thorpej Exp $ */
/*
prompt, errstr, optarg);
}
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: tput.c,v 1.24 2019/01/25 00:19:27 millert Exp $ */
+/* $OpenBSD: tput.c,v 1.25 2022/12/04 23:50:49 cheloha Exp $ */
/*
* Copyright (c) 1999 Todd C. Miller <millert@openbsd.org>
case 'S':
Sflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: tr.c,v 1.21 2022/02/11 16:09:21 cheloha Exp $ */
+/* $OpenBSD: tr.c,v 1.22 2022/12/04 23:50:49 cheloha Exp $ */
/* $NetBSD: tr.c,v 1.5 1995/08/31 22:13:48 jtc Exp $ */
/*
case 's':
sflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: tset.c,v 1.43 2021/06/22 18:33:48 tb Exp $ */
+/* $OpenBSD: tset.c,v 1.44 2022/12/04 23:50:49 cheloha Exp $ */
/****************************************************************************
* Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. *
case 'w': /* set window-size */
opt_w = TRUE;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: tty.c,v 1.12 2021/07/12 15:09:20 beck Exp $ */
+/* $OpenBSD: tty.c,v 1.13 2022/12/04 23:50:50 cheloha Exp $ */
/* $NetBSD: tty.c,v 1.4 1994/12/07 00:46:57 jtc Exp $ */
/*
case 's':
sflag = 1;
break;
- case '?':
default:
usage();
/* NOTREACHED */
-/* $OpenBSD: unvis.c,v 1.14 2015/10/09 01:37:09 deraadt Exp $ */
+/* $OpenBSD: unvis.c,v 1.15 2022/12/04 23:50:50 cheloha Exp $ */
/*-
* Copyright (c) 1989, 1993
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
- case '?':
default:
(void) fprintf(stderr, "usage: unvis [file ...]\n");
exit(1);
-/* $OpenBSD: usbhidaction.c,v 1.25 2022/08/02 09:07:34 mestre Exp $ */
+/* $OpenBSD: usbhidaction.c,v 1.26 2022/12/04 23:50:50 cheloha Exp $ */
/* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */
/*
demon = 0;
verbose++;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: usbhid.c,v 1.18 2021/12/15 11:21:35 mestre Exp $ */
+/* $OpenBSD: usbhid.c,v 1.19 2022/12/04 23:50:50 cheloha Exp $ */
/* $NetBSD: usbhid.c,v 1.22 2002/02/20 20:30:42 christos Exp $ */
/*
wflag = aflag = nflag = verbose = rflag = Rflag = lflag = 0;
dev = NULL;
table = NULL;
- while ((ch = getopt(argc, argv, "?af:lnRrt:vw")) != -1) {
+ while ((ch = getopt(argc, argv, "af:lnRrt:vw")) != -1) {
switch (ch) {
case 'a':
aflag = 1;
case 'w':
wflag = 1;
break;
- case '?':
default:
usage();
/* NOTREACHED */
-/* $OpenBSD: users.c,v 1.15 2021/07/12 15:09:20 beck Exp $ */
+/* $OpenBSD: users.c,v 1.16 2022/12/04 23:50:48 cheloha Exp $ */
/* $NetBSD: users.c,v 1.5 1994/12/20 15:58:19 jtc Exp $ */
/*
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
- case '?':
default:
(void)fprintf(stderr, "usage: users\n");
exit(1);
-/* $OpenBSD: vis.c,v 1.21 2020/08/03 01:08:37 deraadt Exp $ */
+/* $OpenBSD: vis.c,v 1.22 2022/12/04 23:50:50 cheloha Exp $ */
/* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */
/*-
debug = 1;
break;
#endif
- case '?':
default:
usage();
}
/* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */
-/* $OpenBSD: vmstat.c,v 1.154 2022/07/26 14:49:13 visa Exp $ */
+/* $OpenBSD: vmstat.c,v 1.155 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 1980, 1986, 1991, 1993
case 'z':
zflag = 1;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: w.c,v 1.67 2022/02/22 17:35:01 deraadt Exp $ */
+/* $OpenBSD: w.c,v 1.68 2022/12/04 23:50:50 cheloha Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
case 'f': case 'l': case 's': case 'u': case 'w':
warnx("[-flsuw] no longer supported");
/* FALLTHROUGH */
- case '?':
default:
usage(wcmd);
}
-/* $OpenBSD: wc.c,v 1.30 2022/09/02 15:21:40 cheloha Exp $ */
+/* $OpenBSD: wc.c,v 1.31 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 1980, 1987, 1991, 1993
case 'h':
humanchar = 1;
break;
- case '?':
default:
fprintf(stderr,
"usage: %s [-c | -m] [-hlw] [file ...]\n",
-/* $OpenBSD: xargs.c,v 1.35 2020/07/19 13:19:25 schwarze Exp $ */
+/* $OpenBSD: xargs.c,v 1.36 2022/12/04 23:50:50 cheloha Exp $ */
/* $FreeBSD: xargs.c,v 1.51 2003/05/03 19:09:11 obrien Exp $ */
/*-
case '0':
zflag = 1;
break;
- case '?':
default:
usage();
- }
+ }
argc -= optind;
argv += optind;
-/* $OpenBSD: xinstall.c,v 1.76 2021/11/28 19:28:42 deraadt Exp $ */
+/* $OpenBSD: xinstall.c,v 1.77 2022/12/04 23:50:50 cheloha Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
case 'd':
dodir = 1;
break;
- case '?':
default:
usage();
}
case 'w':
fp = file(optarg);
break;
- case '?':
default:
usage();
break;
-/* $OpenBSD: apmd.c,v 1.109 2022/02/18 22:54:13 deraadt Exp $ */
+/* $OpenBSD: apmd.c,v 1.110 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
errx(1, "battery percentage is %s: %s", errstr,
optarg);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: dev_mkdb.c,v 1.18 2021/07/12 15:09:20 beck Exp $ */
+/* $OpenBSD: dev_mkdb.c,v 1.19 2022/12/04 23:50:50 cheloha Exp $ */
/*-
* Copyright (c) 1990, 1993
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
- case '?':
default:
usage();
}
-/* $OpenBSD: fdformat.c,v 1.24 2019/06/28 13:32:47 deraadt Exp $ */
+/* $OpenBSD: fdformat.c,v 1.25 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (C) 1992-1994 by Joerg Wunsch, Dresden
verify_only = 1;
break;
- case '?': default:
+ default:
usage();
}
-/* $OpenBSD: hotplugd.c,v 1.17 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: hotplugd.c,v 1.18 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
case 'd':
device = optarg;
break;
- case '?':
default:
usage();
/* NOTREACHED */
-/* $OpenBSD: inetd.c,v 1.162 2020/12/30 18:41:06 benno Exp $ */
+/* $OpenBSD: inetd.c,v 1.163 2022/12/04 23:50:50 cheloha Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
optarg);
break;
}
- case '?':
default:
fprintf(stderr,
"usage: inetd [-d] [-R rate] [configuration_file]\n");
-/* $OpenBSD: iostat.c,v 1.44 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: iostat.c,v 1.45 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
if (errstr)
errx(1, "wait is %s", errstr);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: lpq.c,v 1.23 2016/02/29 17:26:02 jca Exp $ */
+/* $OpenBSD: lpq.c,v 1.24 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: lpq.c,v 1.9 1999/12/07 14:54:47 mrg Exp $ */
/*
if (wait_time < 30)
warnx("warning: wait time less than 30 seconds");
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: makefs.c,v 1.21 2021/07/12 15:09:21 beck Exp $ */
+/* $OpenBSD: makefs.c,v 1.22 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: makefs.c,v 1.53 2015/11/27 15:10:32 joerg Exp $ */
/*
stampts = get_tstamp(optarg);
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: mtree.c,v 1.27 2021/11/15 15:14:24 millert Exp $ */
+/* $OpenBSD: mtree.c,v 1.28 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */
/*-
case 'x':
ftsoptions |= FTS_XDEV;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: netgroup_mkdb.c,v 1.22 2019/06/28 14:20:40 schwarze Exp $ */
+/* $OpenBSD: netgroup_mkdb.c,v 1.23 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
dbname = optarg;
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: pwd_mkdb.c,v 1.59 2021/11/28 19:28:42 deraadt Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.60 2022/12/04 23:50:51 cheloha Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
break;
case 'v': /* backward compatible */
break;
- case '?':
default:
usage();
}
-/* $OpenBSD: lockd.c,v 1.14 2015/04/18 18:28:38 deraadt Exp $ */
+/* $OpenBSD: lockd.c,v 1.15 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1995
}
break;
default:
- case '?':
usage();
/* NOTREACHED */
}
-/* $OpenBSD: statd.c,v 1.4 2017/01/21 08:33:51 krw Exp $ */
+/* $OpenBSD: statd.c,v 1.5 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
debug = 1;
break;
default:
- case '?':
fprintf(stderr, "usage: %s [-d]\n", __progname);
exit(1);
/* NOTREACHED */
-/* $OpenBSD: main.c,v 1.18 2022/02/22 17:22:29 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.19 2022/12/04 23:50:51 cheloha Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
* All rights reserved.
if (errstr)
errx(1, "-v %s: %s", optarg, errstr);
break;
- case '?':
default:
(void)fprintf(stderr,
"usage: %s [-abcDdfijKklmnqrstu] [-v cutoff]"
-/* $OpenBSD: wsconscfg.c,v 1.17 2021/10/24 21:24:19 deraadt Exp $ */
+/* $OpenBSD: wsconscfg.c,v 1.18 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: wsconscfg.c,v 1.4 1999/07/29 18:24:10 augustss Exp $ */
/*
case 'F':
dsd.flags |= WSDISPLAY_DELSCR_FORCE;
break;
- case '?':
default:
usage();
break;
-/* $OpenBSD: wsfontload.c,v 1.25 2021/10/25 19:54:29 kn Exp $ */
+/* $OpenBSD: wsfontload.c,v 1.26 2022/12/04 23:50:51 cheloha Exp $ */
/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
/*
case 'B':
f.byteorder = WSDISPLAY_FONTORDER_R2L;
break;
- case '?':
default:
usage();
break;