summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-11-27 13:32:03 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-11-27 13:32:03 +0000
commit6b969450ad80f281cbe58d1974c250b84b1a429c (patch)
tree7810874263d02c279e59b68ce5a87850bcd1891c /usr.bin
parentf885baa06758e9acb34a25340f4c4de85179e903 (diff)
remove erroneous char cast to switch expression processing getopt(3);
not used in any cases. ok deraadt@, guenther@, millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/from/from.c4
-rw-r--r--usr.bin/lastcomm/lastcomm.c4
-rw-r--r--usr.bin/logger/logger.c4
-rw-r--r--usr.bin/ruptime/ruptime.c4
-rw-r--r--usr.bin/rwho/rwho.c4
-rw-r--r--usr.bin/tcopy/tcopy.c4
-rw-r--r--usr.bin/tr/tr.c4
-rw-r--r--usr.bin/tty/tty.c4
-rw-r--r--usr.bin/unvis/unvis.c4
-rw-r--r--usr.bin/vis/vis.c4
-rw-r--r--usr.bin/wc/wc.c4
-rw-r--r--usr.bin/xinstall/xinstall.c4
12 files changed, 24 insertions, 24 deletions
diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c
index 1bda21e13c9..17a09c15029 100644
--- a/usr.bin/from/from.c
+++ b/usr.bin/from/from.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: from.c,v 1.15 2013/11/26 13:18:55 deraadt Exp $ */
+/* $OpenBSD: from.c,v 1.16 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */
/*
@@ -56,7 +56,7 @@ main(int argc, char *argv[])
file = sender = NULL;
while ((ch = getopt(argc, argv, "f:s:")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'f':
file = optarg;
break;
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c
index c4c5cbd1464..614613c4f12 100644
--- a/usr.bin/lastcomm/lastcomm.c
+++ b/usr.bin/lastcomm/lastcomm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lastcomm.c,v 1.18 2013/11/26 13:19:05 deraadt Exp $ */
+/* $OpenBSD: lastcomm.c,v 1.19 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */
/*
@@ -69,7 +69,7 @@ main(int argc, char *argv[])
acctfile = _PATH_ACCT;
while ((ch = getopt(argc, argv, "f:")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'f':
acctfile = optarg;
break;
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index f87af059f5b..9146d678419 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logger.c,v 1.12 2013/11/26 13:19:07 deraadt Exp $ */
+/* $OpenBSD: logger.c,v 1.13 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: logger.c,v 1.4 1994/12/22 06:27:00 jtc Exp $ */
/*
@@ -60,7 +60,7 @@ main(int argc, char *argv[])
pri = LOG_NOTICE;
logflags = 0;
while ((ch = getopt(argc, argv, "f:ip:st:")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'f': /* file to log */
if (freopen(optarg, "r", stdin) == NULL) {
(void)fprintf(stderr, "logger: %s: %s.\n",
diff --git a/usr.bin/ruptime/ruptime.c b/usr.bin/ruptime/ruptime.c
index 852247496b3..11270011c4c 100644
--- a/usr.bin/ruptime/ruptime.c
+++ b/usr.bin/ruptime/ruptime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ruptime.c,v 1.16 2009/10/27 23:59:43 deraadt Exp $ */
+/* $OpenBSD: ruptime.c,v 1.17 2013/11/27 13:32:02 okan Exp $ */
/*
* Copyright (c) 1983 The Regents of the University of California.
@@ -75,7 +75,7 @@ main(int argc, char *argv[])
aflg = 0;
while ((ch = getopt(argc, argv, "alrut")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'a':
aflg = 1;
break;
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c
index a59c6f75678..f82ab5b59f9 100644
--- a/usr.bin/rwho/rwho.c
+++ b/usr.bin/rwho/rwho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rwho.c,v 1.17 2013/04/16 18:57:39 deraadt Exp $ */
+/* $OpenBSD: rwho.c,v 1.18 2013/11/27 13:32:02 okan Exp $ */
/*
* Copyright (c) 1983 The Regents of the University of California.
@@ -83,7 +83,7 @@ main(int argc, char **argv)
int nhosts = 0;
while ((ch = getopt(argc, argv, "a")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'a':
aflg = 1;
break;
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c
index 1780c960814..afc56f0397e 100644
--- a/usr.bin/tcopy/tcopy.c
+++ b/usr.bin/tcopy/tcopy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcopy.c,v 1.11 2009/10/27 23:59:44 deraadt Exp $ */
+/* $OpenBSD: tcopy.c,v 1.12 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: tcopy.c,v 1.5 1997/04/15 07:23:08 lukem Exp $ */
/*
@@ -70,7 +70,7 @@ main(int argc, char *argv[])
guesslen = 1;
while ((ch = getopt(argc, argv, "cs:vx")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'c':
op = COPYVERIFY;
break;
diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c
index 62e1e9f27fd..bd618a94d12 100644
--- a/usr.bin/tr/tr.c
+++ b/usr.bin/tr/tr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tr.c,v 1.15 2009/10/27 23:59:46 deraadt Exp $ */
+/* $OpenBSD: tr.c,v 1.16 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: tr.c,v 1.5 1995/08/31 22:13:48 jtc Exp $ */
/*
@@ -89,7 +89,7 @@ main(int argc, char *argv[])
cflag = dflag = sflag = 0;
while ((ch = getopt(argc, argv, "cds")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'c':
cflag = 1;
break;
diff --git a/usr.bin/tty/tty.c b/usr.bin/tty/tty.c
index a377d94e435..5243afd0403 100644
--- a/usr.bin/tty/tty.c
+++ b/usr.bin/tty/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.6 2009/10/27 23:59:46 deraadt Exp $ */
+/* $OpenBSD: tty.c,v 1.7 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: tty.c,v 1.4 1994/12/07 00:46:57 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
sflag = 0;
while ((ch = getopt(argc, argv, "s")) != -1) {
- switch((char)ch) {
+ switch(ch) {
case 's':
sflag = 1;
break;
diff --git a/usr.bin/unvis/unvis.c b/usr.bin/unvis/unvis.c
index ad5a930cad0..355a19b5676 100644
--- a/usr.bin/unvis/unvis.c
+++ b/usr.bin/unvis/unvis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unvis.c,v 1.10 2013/11/15 22:20:04 millert Exp $ */
+/* $OpenBSD: unvis.c,v 1.11 2013/11/27 13:32:02 okan Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
int ch;
while ((ch = getopt(argc, argv, "")) != -1)
- switch((char)ch) {
+ switch(ch) {
case '?':
default:
(void) fprintf(stderr, "usage: unvis [file ...]\n");
diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c
index 6e20ec9e6af..0ccba278aea 100644
--- a/usr.bin/vis/vis.c
+++ b/usr.bin/vis/vis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.c,v 1.14 2010/08/24 23:49:06 djm Exp $ */
+/* $OpenBSD: vis.c,v 1.15 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */
/*-
@@ -54,7 +54,7 @@ main(int argc, char *argv[])
int ch;
while ((ch = getopt(argc, argv, "anwctsobfF:ld")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'a':
eflags |= VIS_ALL;
break;
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
index 7d8886d0744..5387cd03200 100644
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wc.c,v 1.15 2013/11/23 17:37:22 deraadt Exp $ */
+/* $OpenBSD: wc.c,v 1.16 2013/11/27 13:32:02 okan Exp $ */
/*
* Copyright (c) 1980, 1987, 1991, 1993
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
while ((ch = getopt(argc, argv, "lwchm")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'l':
doline = 1;
break;
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index f13e54c3529..e246a9fb145 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xinstall.c,v 1.55 2013/11/26 21:08:10 deraadt Exp $ */
+/* $OpenBSD: xinstall.c,v 1.56 2013/11/27 13:32:02 okan Exp $ */
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
/*
@@ -88,7 +88,7 @@ main(int argc, char *argv[])
iflags = 0;
while ((ch = getopt(argc, argv, "B:bCcdf:g:m:o:pSs")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'C':
docompare = 1;
break;