summaryrefslogtreecommitdiff
path: root/games
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 /games
parentf885baa06758e9acb34a25340f4c4de85179e903 (diff)
remove erroneous char cast to switch expression processing getopt(3);
not used in any cases. ok deraadt@, guenther@, millert@
Diffstat (limited to 'games')
-rw-r--r--games/backgammon/common_source/subs.c4
-rw-r--r--games/morse/morse.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/games/backgammon/common_source/subs.c b/games/backgammon/common_source/subs.c
index eca168d258b..1a5f9f44653 100644
--- a/games/backgammon/common_source/subs.c
+++ b/games/backgammon/common_source/subs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subs.c,v 1.18 2009/10/27 23:59:23 deraadt Exp $ */
+/* $OpenBSD: subs.c,v 1.19 2013/11/27 13:32:02 okan Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -195,7 +195,7 @@ getarg(argc,argv)
int ch;
while ((ch = getopt(argc, argv, "bdnrs:w")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'n': /* don't ask if rules or instructions needed */
if (rflag)
break;
diff --git a/games/morse/morse.c b/games/morse/morse.c
index c362cf03612..ad5792e95d4 100644
--- a/games/morse/morse.c
+++ b/games/morse/morse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: morse.c,v 1.14 2009/10/27 23:59:26 deraadt Exp $ */
+/* $OpenBSD: morse.c,v 1.15 2013/11/27 13:32:02 okan Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -113,7 +113,7 @@ main(int argc, char *argv[])
char *p;
while ((ch = getopt(argc, argv, "dsh")) != -1)
- switch((char)ch) {
+ switch(ch) {
case 'd':
dflag = 1;
break;