X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/904e68d878402cde03164a9706d828a6bafa25ce..20f4b4a3dce08ccdf847d3e6c43da955051f2efc:/tig.c diff --git a/tig.c b/tig.c index e78c26c..df2ede1 100644 --- a/tig.c +++ b/tig.c @@ -1684,7 +1684,7 @@ search_view(struct view *view, enum request request, const char *search) char buf[SIZEOF_STR] = "unknown error"; regerror(regex_err, &view->regex, buf, sizeof(buf)); - report("Search failed: %s", buf);; + report("Search failed: %s", buf); return; } @@ -3416,7 +3416,7 @@ main(int argc, char *argv[]) if (*opt_codeset && strcmp(opt_codeset, opt_encoding)) { opt_iconv = iconv_open(opt_codeset, opt_encoding); - if (opt_iconv == (iconv_t) -1) + if (opt_iconv == ICONV_NONE) die("Failed to initialize character set conversion"); }