summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-16 12:06:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-16 12:06:51 -0800
commit2bcca4c2118733f14a91eaf585e8ff97e216b6bd (patch)
tree5302f78894bcf100e7e8172c0289bb30ea3e5f0d /src/main.c
parent5de2e4e9d39fd918d041169e2759d4f4b57a0cc6 (diff)
Made 'options' an int rather than a long.
For consistency with the API.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 80cdb37..b8ad264 100644
--- a/src/main.c
+++ b/src/main.c
@@ -33,7 +33,7 @@ void print_usage()
}
static void print_document(cmark_node *document, writer_format writer,
- long options)
+ int options)
{
char *result;
switch (writer) {
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
size_t bytes;
cmark_node *document;
writer_format writer = FORMAT_HTML;
- long options = CMARK_OPT_DEFAULT;
+ int options = CMARK_OPT_DEFAULT;
#if defined(_WIN32) && !defined(__CYGWIN__)
_setmode(_fileno(stdout), _O_BINARY);