r884: for C++ compatibility (#261)

This commit is contained in:
Heng Li 2018-11-06 22:07:11 -05:00
parent 59f23f7579
commit 6596c63dcd
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ static int ketopt(ketopt_t *s, int argc, char *argv[], int permute, const char *
char *p;
if (s->pos == 0) s->pos = 1;
opt = s->opt = argv[s->i][s->pos++];
p = strchr(ostr, opt);
p = strchr((char*)ostr, opt);
if (p == 0) {
opt = '?'; /* unknown option */
} else if (p[1] == ':') {

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "ketopt.h"
#define MM_VERSION "2.14-r883"
#define MM_VERSION "2.14-r884"
#ifdef __linux__
#include <sys/resource.h>