X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/04d39401bf641371ebd7d33949c6022bf67ee762..6186d581cef14eeac47ae71fb343d8b6b1b5b013:/demandoc.c?ds=sidebyside diff --git a/demandoc.c b/demandoc.c index f55109cd..c33fd891 100644 --- a/demandoc.c +++ b/demandoc.c @@ -1,4 +1,4 @@ -/* $Id: demandoc.c,v 1.25 2016/01/08 02:13:39 schwarze Exp $ */ +/* $Id: demandoc.c,v 1.27 2016/07/09 15:24:19 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -87,7 +86,7 @@ main(int argc, char *argv[]) for (i = 0; i < argc; i++) { mparse_reset(mp); - if (mparse_open(mp, &fd, argv[i]) != MANDOCLEVEL_OK) { + if ((fd = mparse_open(mp, argv[i])) == -1) { perror(argv[i]); continue; }