From 6596c63dcd392f901aa12350cc8409925ba6d3c5 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 6 Nov 2018 22:07:11 -0500 Subject: [PATCH] r884: for C++ compatibility (#261) --- ketopt.h | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ketopt.h b/ketopt.h index 11638db..70193a5 100644 --- a/ketopt.h +++ b/ketopt.h @@ -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] == ':') { diff --git a/main.c b/main.c index 504c252..7a42685 100644 --- a/main.c +++ b/main.c @@ -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