From 38282592fcc1ca1d2c02b37d82083e381a701956 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Fri, 1 May 2020 19:58:40 +0300 Subject: [PATCH] Fix minor typos --- main.c | 2 -- markdown.h | 2 +- mkd-callbacks.3 | 2 +- mkd2html.c | 2 +- mkdio.h.in | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 6b50773..59e5dcf 100644 --- a/main.c +++ b/main.c @@ -26,8 +26,6 @@ #endif #ifndef HAVE_BASENAME -#include - char* basename(char *p) { diff --git a/markdown.h b/markdown.h index fb6b547..4efc40c 100644 --- a/markdown.h +++ b/markdown.h @@ -220,7 +220,7 @@ struct string_stream { } ; /* - * sneakily back-define the published interface (leaving the old functions for v2 compatability) + * sneakily back-define the published interface (leaving the old functions for v2 compatibility) */ #define mkd_in mkd3_in diff --git a/mkd-callbacks.3 b/mkd-callbacks.3 index 13dc4c2..88b6106 100644 --- a/mkd-callbacks.3 +++ b/mkd-callbacks.3 @@ -52,7 +52,7 @@ function (in the module basename.c) is implemented by means of mkd callbacks; it modifies urls that start with a `/' so that they begin with a user-supplied url base by allocating a new string and filling it with the base + the url. Discount plugs -that url in in place of the original, then calls the basename +that url in place of the original, then calls the basename free function (it only does this when .Fn mkd_e_url or diff --git a/mkd2html.c b/mkd2html.c index cbe2b7a..f3ee435 100644 --- a/mkd2html.c +++ b/mkd2html.c @@ -74,7 +74,7 @@ enum { GFM, ADD_CSS, ADD_HEADER, ADD_FOOTER }; struct h_opt opts[] = { { GFM, "gfm",'G', 0, "Github style markdown" }, { ADD_CSS, "css", 0, "url", "Additional css for this page" }, - { ADD_HEADER, "header", 0, "header", "Additonal headers for this page" }, + { ADD_HEADER, "header", 0, "header", "Additional headers for this page" }, { ADD_FOOTER, "footer", 0, "footer", "Additional footers for this page" }, }; #define NROPTS (sizeof opts/sizeof opts[0]) diff --git a/mkdio.h.in b/mkdio.h.in index 789a4db..cd28d8c 100644 --- a/mkdio.h.in +++ b/mkdio.h.in @@ -57,7 +57,7 @@ void mkd_clr_flag_num(mkd_flag_t*, unsigned long);/* clear a specific flag */ void mkd_set_flag_bitmap(mkd_flag_t*,long); /* set a bunch of flags */ /* - * sneakily back-define the published interface (leaving the old functions for v2 compatability) + * sneakily back-define the published interface (leaving the old functions for v2 compatibility) */ #define mkd_in mkd3_in