diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-11-27 13:32:03 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-11-27 13:32:03 +0000 |
commit | 6b969450ad80f281cbe58d1974c250b84b1a429c (patch) | |
tree | 7810874263d02c279e59b68ce5a87850bcd1891c /usr.bin/logger/logger.c | |
parent | f885baa06758e9acb34a25340f4c4de85179e903 (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/logger/logger.c')
-rw-r--r-- | usr.bin/logger/logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
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", |